Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ......

Eclipse¿ª·¢FlexºÍJ2EEµÄÅäÖÃ

eclipseÒ»¸öÏîÄ¿ÖÐͬʱ¿ª·¢flexºÍj2eeµÄ»·¾³ÅäÖÃ
ÒòΪ¹¤×÷ÐèÒª£¬Ñ§ÁËÒ»ÖÜflex½ñÌ쿪ʼÑо¿Óë·þÎñÆ÷ͨÐÅ£¬Ñ¡ÔñÁËÃâ·ÑµÄBlazeDS¡£ÓÉÓÚ֮ǰ×öÏîÄ¿ÓõÄÊÇeclipse europa£¬¾Í°Ñflex builder 3 pluginÖ±½Ó°²×°µ½Ô­ÓеÄeclipseÉÏÁË£¬ÕâÑùÔÙÅäÖõÄʱºò¿Í»§¶Ë±à³ÌÓõÄflexºÍ·þÎñÆ÷¶ËµÄJ2EE¾ÍÄÜÕûºÏµ½Ò»¸ö¹¤³ÌÏÂÁË£¬Ï£Íû¶ÔÓÚÔÝʱÓÉjs ......

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

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

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ºÅ