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

flexÖеÄÊôÐÔ


flex ¿Ø¼þÊôÐÔ
2009-11-12 16:06
ʹÓÃ<mx:Style>±êÇ©ÔÚMXMLÎļþÖд´½¨±¾µØµÄÑùʽ¶¨Òå¡£Õâ¸ö±êÇ©°üº¬ÁË·ûºÏCSS2.0Óï·¨µÄÑùʽ±í¶¨
Òå¡£ÕâЩ¶¨Òå»áÓ¦Óõ½µ±Ç°ÎĵµÒÔ¼°µ±Ç°ÎĵµµÄ×ÓÎĵµ¡£
<mx:style>
.solidBorder{//ÀàÑ¡ÔñÑùʽ
borderStyle:solid;
}
button{//×é¼þ¶¨ÒåÑùʽ
borderStyle: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Íâ¿ò±ß½Ç¶ÈÊýÊýÖµ


Ïà¹ØÎĵµ£º

flexͨ¹ýblazedsÓëjavaʵÏÖÔöɾ¸Ä²é Õû¸öʵÏÖÁ÷³Ì

1£¬½¨Ò»¸öuserdb¿â£¬ÔÙ½¨userinfo±í£¬×ֶΣºid(int),username(varchar),password(varchar)¡£
2£¬DBConnection.java
    package com.datainfo;  
 
  import java.sql.Connection;  
  import java.sql.DriverManager;  
  import java.sql.SQ ......

flexÈýÖÖÁ¬¼¶·½Ê½

 flexÈýÖÖÁ¬¼¶·½Ê½:
   ÄÚÁª£º<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="var codetxt:Text=new Text">
         </mx:Application>
   ¼¶Áª£º<mx:Application xmlns:mx="http: ......

Flexѧϰ±Ê¼Ç£¨1£©

×î½ü¿´ÁËflexÏà¹Ø×ÊÁÏ£¬ÐĵÃÌå»áÈçÏ£º
Flex³ÌÐò°üÀ¨£º
1.flex framework
2.MXML ³ÌÐòÖ÷Îļþ£¬»ùÓÚxmlµÄÒ»ÖÖʵÏÖ¡£
3.Actionscript 3.0 ÀàËÆJSµÄÒ»Öֽű¾
4.CSS Ñùʽ
5.ͼÐÎ×ÊÔ´ ͼ±êÖ®ÀàµÄ¶«¶«
6.Êý¾Ý
Flex±àÒë·¢²¼¹ý³Ì£º
FlexÓ¦ÓóÌÐò±»±àÒë³ÉÒ»¸öSWFÎļþ£¬È»ºóÔÚFlash PlayerÏÂÔËÐС£µ±Ô´´úÂë±»±àÒëÊÇ£¬Ëü¾Í±»× ......

Flex Builder 3.0 For Eclipse 3.3 °²×°·½·¨[ת]

Flex Builder 3.0 For Eclipse 3.3 °²×°·½·¨
Flex Builder 3.0 For Eclipse 3.3 °²×°·½·¨
  ÕâÁ½Ìì×¼±¸Ñ§Ï°Flex,ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin×¼±¸°²×°.
µ«ÊÇ°²×°ºóÆô¶¯Eclipse,ÕÒÁË°ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Ë¬.
ËùÒÔÎÒÏëµ½Äܲ»ÄÜÀ´¸öFlex BuilderÂÌÉ«°²×°·½ ......

ÈçºÎÔÚFlex »ò ActionScriptÖдò¿ªWORD Doc

Adobe Flash Builder 4 ¼òÌåÖÐÎÄÕýʽ°æ ÏÂÔØ:
http://subject.csdn.net/adobedownload/index.html
ʹÓÃÏà¹ØµÄÓò£¬ÀûÓÃAdobe Livecycle Designer´´½¨Ò»¸öPDFÄ£×飬ÒÔXML½ÚµÄÃû³Æ£¨ÓëPDFÄ£×éÖеÄÓòµÄÃû³ÆÆ¥Å䣩ÏòPDFÔ¶³Ì¶ÔÏó·¢ËÍXMLÊý¾Ý£¬È»ºóÄúµÄFlexÓ¦ÓóÌÐò¾Í»á´ò¿ªPDF, »ò½«PDFÎļþ·ÅÈëÄúµÄwebserv ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ