Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ѧϰ±Ê¼Ç£¨1£©

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

BlazeDS + Hibernet + Flex ¿ª·¢WebÓ¦ÓÃ

BlazeDS + Hibernet + Flex ¿ª·¢WebÓ¦ÓÃ
ÍøÉÏÓйØÓÚ¼¯³ÉBlazeDSºÍFlexµÄʾÀý£¬µ«ÊǴ󲿷ֶ¼Êǽ«¿Í»§¶ËºÍ·þÎñÆ÷´úÂë·ÅÖõ½Ò»¸öÏîÄ¿£¬ÕâÖÖ·½Ê½Ê¹ÎÒÃÇÔÚ±àÂëʱÈÝÒײúÉú»ìÏý£¬²¢ÇÒÒ²²»ÀûÓÚ´óµÄÏîÄ¿µÄ¿ª·¢Óë¹ÜÀí¡£ÏÂÃæͨ¹ýÒ»¸ö¼òµ¥µÄÀý×ÓÑÝʾһÏ£¬½¨Á¢¿Í»§¶ËºÍ·þÎñÆ÷¶Ë·ÖÀëµÄ£¬·þÎñÆ÷¶Ë²ÉÓÃHibernet+BlazeDSµÄFlex WebÏîÄ¿¡£Ï£ ......

Flex Builder 3 ÏÂÔØ°²×°Óë×¢²áÂë

Flex Builder 3 Õýʽ°æ£¬·¢²¼ÓÚÖйúʱ¼ä 2008 Äê 2 Ô 25 ÈÕ£»
ÏÂÔصØÖ·Ò»£º
http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe
´óС£º 424 MB £»Î´½øÐÐѹËõµÄ Flex Builder 3 °²×°Îļþ
²»ÓÃ×¢²áµÇ¼£¬¿ÉÒÔÖ±½ÓÏÂÔØ¡£
ÏÂÔصØÖ·¶þ£º
http://trials.adobe.com/Applications/.../FB3_WWEJ.exe
´óС£º¡ ......

flex ÍÏק£¬Ö¸¶¨ÍÏק´úÀí£¬ÓÉÒ»¸öÈÝÆ÷ÍϷŵ½ÁíÒ»¸öÀï

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Script>
<![CDATA[
import mx.core.BitmapAsset;
import mx.core.DragSource;
import mx.events.DragEvent;
import mx.managers.DragManager;
private var xoffset:Number;
private var yoffset:Number;
priv ......

Flex Ò³ÃæÌøת

flex Ò³ÃæÌøת
·½·¨Ò»£ºÊ¹ÓÃnavigateToURL
var url:String = "http://localhost/flex/test.jsp";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self");
·½·¨¶þ£ºÒýÓÃflashÖÐµÄ import flash.external.ExternalInterface Õâ¸ö½Ó¿Ú
ËûÄÜÌṩÏñjsÖÐwindow.location.href·½·¨Ò»Ñù·½±ã
Extern ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ