Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex: °´±ÈÀýÉèÖÃDataGirdµÄÁпí

FlexÀïÃ棬DataGridµÄcolumnµÄwidthÊôÐÔ²»½ÓÊܰٷֱȣ¬Ö»½ÓÊÜÒ»¸ö¾ßÌåµÄÏñËØÖµ£¬ËùÒÔ£¬Èç¹ûÏë°´ÕÕ±ÈÀýÀ´ÉèÖÃÁпíÐèÒª·ÑЩÖÜÕÛ¡£GoogleÁËһϣ¬ÓÐÁ½ÖÖ·½·¨¿ÉÒÔ×öµ½£º µÚÒ»ÖÖ·½·¨£¬²»ÒªÉèÖÃwidthΪ°Ù·Ö±È£¬¶øÉèÖÃΪһ¸öСÊý£¬ËùÓÐÁеÄСÊýÖµµÄºÍ±ØÐëΪ1¡£ <mx:DataGrid width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name" width=".25" />
<mx:DataGridColumn headerText="Age" dataField="age" width=".15" />
<mx:DataGridColumn headerText="Job" dataField="job" width=".35" />
<mx:DataGridColumn headerText="Height" dataField="height" width=".25" />
</mx:columns>
</mx:DataGrid>
²Î¼û£ºhttp://www.switchonthecode.com/tutorials/flex-datagrid-percentage-width-columns
ÕâÖÖ·½·¨±È½Ï¼òµ¥Ã÷ÁË£¬µ«ÊÇÈç¹ûÄãµÄÏîÄ¿²»ÊÇÓõıê×¼FlexµÄ¿â£¬¶øÊÇ×Ô¼º¹«Ë¾¿ª·¢µÄ¿â£¬ÄÇôÉÏÃæµÄ¾Í¿ÉÄܲ»¹¤×÷£¬ÄÇô¾ÍÖ»ÄܲÉÓÃÏÂÃæÒ»ÖÖ·½·¨ÁË¡£
 
µÚ¶þÖÖ·½·¨£ºÔÚDataGridµÄcreationComplete()»Øµ÷º¯ÊýÖÐÊÖ¶¯ÉèÖÃÁÐ¿í£¬¿´ÏÂÃæµÄ´úÂ룺
<mx:Script>
<![CDATA[
function setRelativeColWidths(){
dg1.getColumnAt(0).width =dg1.width*.10;
dg1.getColumnAt(1).width =dg1.width*.15;
dg1.getColumnAt(2).width =dg1.width*.50;
dg1.getColumnAt(3).width =dg1.width*.10;
dg1.getColumnAt(4).width =dg1.width*.15;
}
]]>
</mx:Script>
<mx:DataGrid id="dg1" editable="false" hScrollPolicy="off" rowCount="5"
width="50%" creationComplete="setRelativeColWidths()" resize="setRelativeColWidths()>
 
ÔÚcreationCompleteµÄ»Øµ÷º¯ÊýsetRelativeColWidths·½·¨ÖУ¬¶ÔÿһÁа´ÕÕ±ÈÀýÉèÖÃÁËÁÐ¿í¡£
²Î¼û£ºhttp://kb2.adobe.com/cps/224/224468bb.html
µ«ÕâÖÖ·½·¨ÓиöÎÊÌ⣺ÉèÖÃÁпíºó£¬Èç¹ûDataGrid×ÔÉí´óС·¢Éú±ä»¯ºó£¬ÁеĿí¶È²»»á×Ô¶¯µ÷Õû£¬Òò´ËÔÙÔÚresizeµÄʱºòÈÃÆäµ÷ÕûÒ»´ÎÁÐ¿í£¬ÕâÑù¾ÍÍêÃÀÁË¡£


Ïà¹ØÎĵµ£º

Flex Óë servlet ͨÐÅ

servlet ¶Ë£º
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");

Flex ǰ̨¶Ë
<fx:Script>
<![CDATA[
import flash.trace.Trace;
private var loader:UR ......

Flex »ñÈ¡flashÎļþ£¨¶àÔª¼þ.swf£©ÖеÄÖ¸¶¨Ôª¼þ

×î½üÔÚÑо¿flex¼¼Êõ£¬flexºÍflashµÄ½»»¥£¬flexºÍJavaµÄͨÐÅ¡£Ï±ßÊÇÒ»¸öflex¿ØÖÆswfÎļþÖÐÔª¼þµÄ·¶Àý£¬¸Õ½Ó´¥flex£¬ÈçÓв»¶ÔµÄµØ·½£¬´ó¼Ò¶àÌáÒâ¼û¡£
mxmlÎļþ£º
<?xml version="1.0" encoding="utf-8"?>  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
   &n ......

FlexÓëSpring¼¯³ÉµÄ»ù±¾Ô­Àí

    Spring IoCµÄÖ÷Ҫ˼ÏëÊÇʹÓÃÈÝÆ÷À´ÊµÀý»¯×é¼þ£¨²¢¸ø×é¼þ×¢ÈëËùÒÀÀµµÄ£©¡£µ«ÊÇÒ»°ãÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËËùÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷ÖÐÓÉBlazedsÀ´ÊµÀý»¯µÄ¡£Òò´ËÅäÖÃBlazeDSÀ´ÈÃSpringÈÝÆ÷¸ºÔðʵÀý»¯Spring beans¡£BlazeDSÖ§³Ö¹¤³§µÄ¸ÅÄîÀ´Ê¹µÃÕâÖÖ×Ô¶¨Òå×é¼þ¿ÉÒÔʵÀý»¯¡£¹¤³§µÄ×÷Óýö½öÊÇÏòBlazeDSÌá¹©Ò ......

ÔÚflash builderµÄ´¿actionscript¹¤³ÌÖе¼Èëflex×é¼þ

flashbuilderÖпÉÒÔ½¨Á¢flex¹¤³ÌÓëactionscript¹¤³Ì.
flex¹¤³ÌÄÚ¿ÉÒÔʹÓÃmxmlÊÇÍê³ÉÉè¼Æ¹¤×÷.
actionscript¹¤³Ì½¨Á¢Ê±Ä¬ÈÏÖ»ÓÐ:
playerglobal.swc
flex.swc
utilities.sec
playerglobal.swc
Õ⼸¸öÀà¿â.ûÓÐframework.swc,¾ÍÎÞ·¨Ê¹ÓÃButtonµÈ¿Ø¼þÁË.
½â¾ö·½°¸ÊÇ actionscript¹¤³ÌÖмÓÈëframework.swc.
·¾¶ÊÇ x:/A ......

FLEX×öµÄÍøÕ¾

http://www.mvelopes.com/mvelopes/online_budget.php flex
×öµÄ·ÖÎöÈí¼þ
http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/
ÕâÍæÒ⣬Flex2µÄŤÇú±äÐÎЧ¹û£¬ºÇºÇ£¬ÓпÉÄÜÄãÓõõ½flexÖÐ
http://webmessenger.yahoo.com/
yahooµÄwebmessenger
http://www.picnik.com/app
Õâ¸öÒ²²»´í
http: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ