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

ÔÚFLEXÖÐʹÓÃÑùʽ·½·¨

Ò»¡¢Ê¹Óñ¾µØÑùʽ¶¨Òå
ʹÓÃ<mx:Style>±êÇ©ÔÚMXMLÎļþÖд´½¨±¾µØµÄÑùʽ¶¨Òå¡£Õâ¸ö±êÇ©°üº¬ÁË·ûºÏCSS2.0Óï·¨µÄÑùʽ±í¶¨
Òå¡£ÕâЩ¶¨Òå»áÓ¦Óõ½µ±Ç°ÎĵµÒÔ¼°µ±Ç°ÎĵµµÄ×ÓÎĵµ¡£
<mx:style>
.solidBorder{//ÀàÑ¡ÔñÑùʽ
border-style:solid;
}
button{//×é¼þ¶¨ÒåÑùʽ
border-style:solid;
}
....
</mx:style>
//Ó¦Óõ½×é¼þ
<mx:VBoxstyleName="solidBorder"/>
<mx:button/>//ÎĵµÖеÄbutton×Ô¶¯Ó¦ÓÃÑùʽ±íÖеÄÑùʽ
¶þ¡¢Ê¹ÓÃÍⲿÑùʽ±í
FLEXÖ§³ÖÍⲿCSSÑùʽ±í¡£ÒªÓ¦ÓÃÒ»¸öÑùʽ±íµ½µ±Ç°ÎĵµºÍ×ÓÎĵµ£¬Ê¹ÓÃ<mx:Style>±êÇ©ÖеÄsource
ÊôÐÔ¡£
<mx:Application...>
<mx:Stylesource="style/style.css"/>//ÔØÈëÍⲿÑùʽ±í
...
</mx:Application>
style.cssÎļþÖеÄÑùʽ±í¶¨ÒåÓë±¾µØÑùʽ¶¨ÒåÏàͬ¡£
Èý¡¢Ê¹ÓÃÄÚÁªÑùʽ
¿ÉÒÔÏñÉ趨×é¼þµÄÊôÐÔÒ»ÑùÔÚMXML±êÇ©ÖÐÉ趨ÑùʽÊôÐÔ¡£ÄÚÁªÑùʽµÄÓÅÏȼ¶¸ßÓÚ±¾µØÑùʽºÍÍⲿÑùʽ
¡£
<mx:buttonborderStyle="solid">//É趨ÑùʽÊôÐÔ
ËÄ¡¢Ê¹ÓÃsetStyle()·½·¨
¿ÉÒÔÔÚActionScriptÖÐʹÓ÷½·¨À´²Ù×÷×é¼þµÄÑùʽÊôÐÔ¡£Ê¹ÓÃsetStyle()·½·¨µÄÓÅÏȼ¶ÊÇ×î¸ßµÄ¡£
<mx:Application...>
<mx:Script>
<![CDATA[privatefunctiominitButton():void{myButton.setStyle("paddingTop",12);myButton.setStyle("paddingBottom",12);}]]>
</mx:Script>
<mx:Buttonid="myButton"initialize="initButton();">//×é¼þ³õʼ»¯Ê±µ÷ÓÃÉ趨ÑùʽµÄ
Îå¡¢½Å±¾·½·¨
</mx:Application>¸÷×é¼þ¶ÔÓ¦µÄÑùʽÊôÐÔ
themeColorÖ÷ÌâÑÕÉ«£ºÈç¹û¶ÔÉ«²ÊÑùʽÅäÖò»Ïë¹ý¶àµÄÈ¥ÉèÖõϰ£¬themeColorÊÇÒ»¸öÑ¡Ôñ¡£Ëü¿ÉÒÔÈÃÄãÑ¡ÔñÒ»ÖÖ»ù±¾É«²Ê£¬È»ºó×é¼þµÄ±ß¿ò£¬Íâ¹ÛµÈÉ«²Ê½«»áÒÔ´ËÉ«²ÊΪ»ù´¡¹¹³ÉÒ»×éȱʡµÄÑùʽ£¬×é¼þ¾ù¿ÉʹÓôËÑùʽÊôÐÔ¡£
Application×é¼þÑùʽÊôÐÔ
backgroundImage±³¾°Í¼Ê¹ÓÃEmbed(source="");À´Ó¦ÓÃ
backgroundColor±³¾°É«
backgroundGradientColors±³¾°½¥½øÉ«Õâ¸öÊôÐÔÒªÉèÖÃ2¸öÉ«²Ê£¬½¥½øÆðʼɫºÍ
½¥½ø½áÊøÉ«£¬ÖмäÒÔ¶ººÅ·Ö¸ô
backgroundGradientAlphas±³¾°½¥½øÉ«Í¸Ã÷¶ÈÕâ¸öÊôÐÔÒªÉèÖÃ2¸ö͸Ã÷¶È£¬¶ÔÓ¦½¥½øÉ«
ÖеÄ2ÖÖÑÕɫֵµÄ·¶Î§ÊÇ0.00~1.00£¬ÖмäÒÔ¶ººÅ·Ö¸ô
panel×é¼þÑùʽÊôÐÔ
cornerRadius±ß½Ç¶ÈÊýpanelÍâ¿ò±ß½Ç¶ÈÊýÊýÖµ´Ó0~280ʱΪֱ½Ç£¬ÊýÖµÔ½´ó£¬Ô²½Ç»¡¶ÈÔ½´ó
headerHeight±êÌâÍ·¸ß¶Èpanel±êÌâÍ·µÄ¸ß¶ÈÊýÖµ´Ó0~50


Ïà¹ØÎĵµ£º

¹ØÓÚflex lib projectµÄʹÓÃÇé¿öÐĵÃ

×î½üÓöµ½Á˺ͱðÈË·ÖÏíijЩģ¿é´úÂëµÄÇé¿ö£¬Òò´ËÏëµ½ÁËflex lib project,½á¹ûÈçÏ£º
    Ê×ÏÈ£¬ÔÚ¿´ºÜ¶àÎÄÕÂÖйØÓÚswcµÄ½éÉÜʱ£¬¶¼»ù±¾Ëµ³ÉÊÇÓÃÓÚflexµÄ component»òÕßassetsµÄ´ò°üÎļþ¡£ÀàËÆÓÚjava µÄjar°ü¡£µ±Ê±¾ÍºÜÆæ ¹Ö£¬ÄѵÀËûÖ»ÄÜÔÚflex projectÖÐʹÓã¿ÓÚÊÇ×öÁËÈçϲâÊÔ£º
     ......

Flex ʵ¼ù——×Ô¶¨Òå×é¼þ¼°µ÷ÓÃ

     ÕâÒ»´ÎµÄFlex ʵ¼ù½«ÒªÊµÏÖÒÔϹ¦ÄÜ£º
     1¡¢×Ô¶¨ÒåÒ»¸ö¼òµ¥µÄ Flex ×é¼þ
     2¡¢´´½¨Ò»¸öIndex. mxml À´µ÷ÓøÃ×é¼þ
           1£©Óà as µ÷ÓÃ×é¼þ
      &nbs ......

Flex¿ª·¢ÕßÐèÒªÖªµÀµÄ10¼þÊÂ

²»¾Ãǰ£¬Michael Portuesi·¢±íÁËһƪ²©ÎÄ£¬Ì¸µ½ÁËFlex¿ª·¢ÕßÐèÒªÖªµÀµÄ10¼þÊ¡£ÎÄÕ½éÉÜÁËÿ¸ö½øÈëFlexÁìÓòµÄ¿ª·¢Õß¶¼ÐèÒªÕÆÎյĻù±¾ÖªÊ¶Óë¼¼ÄÜ¡£
Michael Portuesi¸ø³öµÄ10¸öÌõÄ¿ÖУ¬ÓÐЩÊÇ¿ª·¢ÕßÐèÒªÁ˽âµÄ¼òµ¥Ï¸½ÚÐÅÏ¢£»ÓÐЩÔò½ÒʾÁËFlash/ActionScript/FlexÓëÆäËû¿ª·¢»·¾³Ö®¼äµÄ²î±ð¡£
Èç¹ûÄãÁ˽âHTML/CSS²¢ÊìϤJavaS ......

¸ßЧÂʵij¬´ó¹æÄ£Flex¿ª·¢

Adobe Flex¿ª·¢Ó봫ͳµÄWeb¿ª·¢Óкܶ಻֮ͬ´¦¡£ÕýÈ·µÄÀí½âºÍÀûÓÃÕâЩ²»Í¬Ö®´¦£¬¿ÉÒÔ°ïÖúÎÒÃÇ´´½¨¸ü·á¸»µÄÓû§ÌåÑ飬Ҳ¿ÉÒÔ·´¹ýÀ´Ôö¼ÓÍøÕ¾µÄ¿ÉÓÃÐÔÒÔ¼°ä¯ÀÀºÍ¸üÐÂËÙ¶È¡£Flex»¹ÌṩÁË´óÁ¿µÄ×é¼þºÍ¼¼Êõ¿âÀ´ÈÃWeb¿ª·¢¸ü¼ÓÇáËÉ——ËüÌṩµÄÇ¿´ó¹¤¾ßÒªÔ¶Ô¶³¬¹ý´«Í³Web 2.0ÖеÄÒì²½JavaScriptºÍXML£¨Ajax£©Ó¦ÓᣴËÍ⣬ ......

Flexȱ·¦²ßÂÔÎļþȨÏÞÎÊÌâ

½ñÌìÓöµ½µÄÒ»¸öÎÊÌ⣬¶ÁÈ¡ÍøÕ¾ÉϵÄÒ»¸öXMLÎļþ±»¾Ü¾ø£¬´íÎóÃèÊöÈçÏ£º
*** °²È«É³Ïä³åÍ» ***
µ½127.0.0.1:8080µÄÁ¬½ÓÒÑÍ£Ö¹ - ²»ÔÊÐí´Ód:/flex/work/bin_debug/work.swf½øÐÐÁ¬½Ó
´íÎ󣺾ܾøÇëÇóλÓÚ http://127.0.0.1:8080/php/work.xml µÄ×ÊÔ´£¨ÇëÇóÕß´Ód:/flex/work/bin_debug/work.swf·¢³öÇëÇ󣩣¬Ô­ÒòÊÇȱ·¦²ß ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ