Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

¹ØÓÚFLEXÖеÄÒþ²Ø·½·¨£¨mx_internal£©

×îÖÕÎÒ¾ö¶¨»¹ÊÇÓÓÒþ²Ø”Õâ¸ö²»ÊǺܺÏÊʵĴʡ£mx_internalÊÇÒ»¸ö×Ô¶¨ÒåÃüÃû¿Õ¼ä£¬ÖÁÓÚ“ÃüÃû¿Õ¼ä”µ½µ×ÊÇʲô¾Í²»ÔÚÕâÀï˵ÁË¡£×ÜÖ®£¬µ±ÎÒÃÇÔÚ´úÂëÍ·²¿Ð´ÉÏ£º
use namespace mx_internal
£¨Èç¹ûÊÇ.ASÎļþ£¬ÐèÒªÊÖ¶¯import mx.core.mx_internal£¬×¢ÒâÕâ¸ö²»»áÓдúÂëÌáʾ£©
ÄÇôËùÓÐÒÔmx_internalΪÃüÃû¿Õ¼äµÄ·½·¨¾Í»á³ÉΪºÍpublicÒ»ÑùµÄ·½·¨£¬Ò²¿ÉÒÔÔÚ´úÂëÌáʾÖÐÕý³£µØÁгö£¨»á±»±ê¼ÇΪ»ÆÉ«£©¡£
ÏÂÃæÁоټ¸¸ömx_internal·½·¨
contentPane
ËùÓеÄUIÈÝÆ÷¶¼»áÓÐÕâÑùÒ»¸öÊôÐÔ£¬ËûµÄ×÷ÓÃÊÇÔÚÔ­ÓеÄÈÝÆ÷ÀïÔÙÌ×ÉÏÒ»¸ö×ÓÈÝÆ÷£¬·½±ã·ÅÖÃÄÚÈÝ¡£µ«Òª×¢Ò⣬contentPane²»Ò»¶¨ÓÐÖµ£¬Ä³Ð©Ê±ºò¾ÍÊÇÖ±½Ó·ÅÔÚÔ­À´µÄÈÝÆ÷Àï¡££¨¾ßÌåµÄÎÒ¾Íû¿´ÁË£©
ÓÉÓÚÓÐÕâÑùÒ»¸ö¶«Î÷£¬¶øÕâ¸ö¶«Î÷µÄmouseEnabledĬÈÏΪtrue£¬ËùÒÔ£¬µ±Ä㽫CanvasºÍCanvasÀïµÄ×é¼þmouseEnabledÉèÖÃΪfalseºó£¬»á·¢ÏÖCanvasÀïµÄ×é¼þ»¹ÊÇ»áÕÚµ²ÏÂÃæµÄÊó±êʼþ¡£Õâ¾ÍÊÇÒòΪÔÚCanvasºÍ×é¼þÖ®¼ä¸ôÁËÒ»²ãÒÀÈ»¿ÉÒÔ´¥·¢Êó±êʼþµÄcontentPane¡£
Òò´Ë£¬Ö»ÒªÉèÖÃCanvasµÄcontentPane.mouseEnalbed=false¼´¿É
$addChild
ÖÚËùÖÜÖª£¬Canvas,ApplicationÈÝÆ÷ÊDz»ÄÜÖ±½ÓaddChildÒ»¸öSpriteµÄ¡£Æäʵ²»È»£¬$addChildµ÷Ó ......

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

²»¾ÃÇ°£¬Michael Portuesi·¢±íÁËһƪ²©ÎÄ£¬Ì¸µ½ÁËFlex¿ª·¢ÕßÐèÒªÖªµÀµÄ10¼þÊ¡£ÎÄÕ½éÉÜÁËÿ¸ö½øÈëFlexÁìÓòµÄ¿ª·¢Õ߶¼ÐèÒªÕÆÎյĻù±¾ÖªÊ¶Óë¼¼ÄÜ¡£
Michael Portuesi¸ø³öµÄ10¸öÌõÄ¿ÖУ¬ÓÐЩÊÇ¿ª·¢ÕßÐèÒªÁ˽âµÄ¼òµ¥Ï¸½ÚÐÅÏ¢£»ÓÐЩÔò½ÒʾÁËFlash/ActionScript/FlexÓëÆäËû¿ª·¢»·¾³Ö®¼äµÄ²î±ð¡£
Èç¹ûÄãÁ˽âHTML/CSS²¢ÊìϤJavaScript£¬µ«È´¶ÔActionScript»òFlexÒ»ÎÞËùÖªµÄ»°£¬ÄÇôӦ¸Ã»¨Ð©Ê±¼äѧϰһÏÂÃæÏò¶ÔÏó±à³Ì£¬ÒòΪActionScriptÊÇÒ»ÃÅÍêÈ«µÄÃæÏò¶ÔÏó±à³ÌÓïÑÔ£¬¶øFlexÔòÊÇÒ»¸öÃæÏò¶ÔÏóµÄ¿ò¼Ü¡£
1. ÔÙ¼òµ¥µÄ¶«Î÷Ò²ÊÇÒì²½µÄ
FlexÊÇÒ»¸öÒì²½¿ò¼Ü£¬Òò´ËÎÒÃǾø¶Ô²»ÄÜÖ¸Íû´úÂëµ÷Óúó¾ÍÄÜÁ¢¿ÌÖ´ÐС£ÊÂʵÉÏ£¬ÎÒÃÇÊÇÎÞ·¨Ô¤Öª·½·¨µÄµ÷ÓÃÐòÁеġ£
2. ¸ãÇå³þFlex×é¼þµÄÑùʽÓëÊôÐÔ
Flex UI×é¼þ£¨°´Å¥¡¢²Ëµ¥µÈµÈ£©¼ÈÓÐÊôÐÔ£¨Í¨¹ýActionScriptÓïÑÔÖ¸¶¨£©Ò²ÓÐÑùʽ£¨Í¨¹ýFlex¿ò¼ÜÖ¸¶¨£©¡£¸ãÇå³þËûÃÇÖ®¼äµÄÇø±ðÊǷdz£ÖØÒªµÄ£¬ÒòΪ×é¼þµÄijЩ¿ÉÊÓ»¯Ð§¹û¿ÉÒÔͨ¹ýÊôÐÔÖ¸¶¨£¬µ«ÁíһЩȴֻÄÜͨ¹ýÑùʽÉ趨¡£Í¨¹ýÊôÐÔÖ¸¶¨£º
button.width = 100;
button.height = 50;
ͨ¹ýÑùʽָ¶¨£º
<mx:Style>
Button {
color: #cc0000;
textRollOverColor: #ccff00;
fontFamily ......

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

Adobe Flex¿ª·¢Ó봫ͳµÄWeb¿ª·¢Óкܶ಻֮ͬ´¦¡£ÕýÈ·µÄÀí½âºÍÀûÓÃÕâЩ²»Í¬Ö®´¦£¬¿ÉÒÔ°ïÖúÎÒÃÇ´´½¨¸ü·á¸»µÄÓû§ÌåÑ飬Ҳ¿ÉÒÔ·´¹ýÀ´Ôö¼ÓÍøÕ¾µÄ¿ÉÓÃÐÔÒÔ¼°ä¯ÀÀºÍ¸üÐÂËٶȡ£Flex»¹ÌṩÁË´óÁ¿µÄ×é¼þºÍ¼¼Êõ¿âÀ´ÈÃWeb¿ª·¢¸ü¼ÓÇáËÉ——ËüÌṩµÄÇ¿´ó¹¤¾ßÒªÔ¶Ô¶³¬¹ý´«Í³Web 2.0ÖеÄÒì²½JavaScriptºÍXML£¨Ajax£©Ó¦ÓᣴËÍ⣬Adobe¹«Ë¾×î½ü·¢²¼µÄAdobe Flash Builder 4 beta£¨ÒÔÇ°½ÐAdobe Flex Builder£©ÖÐÌṩÁËÐí¶àеĺ͸ĽøµÄ¹¤¾ß£¬ËûÃÇ¿ÉÒÔÓÃÀ´¿ª·¢´ó¹æÄ£µÄFlexÓ¦ÓóÌÐò¡£Flash Builder 4×ÅÖØÓÚÌá¸ß¿ª·¢ÈËÔ±µÄÉú²úÁ¦ÒÔ¼°Éè¼ÆÈËÔ±ºÍ¿ª·¢ÈËÔ±µÄ¹¤×÷Á÷¡£
Ïà¹Ø³§ÉÌÄÚÈÝ
¸ßËÙÏÂÔØ£ºAdobe Flash Builder 4 Premium×îÖÕ°æ for Windows
¸ßËÙÏÂÔØ£ºAdobe Flash Builder 4 Premium×îÖÕ°æ for Mac
Ãâ·ÑÃÔÄãÊéÏÂÔØ£ºFlexÈëÃÅÖ¸ÄÏ——PHP¿ª·¢Õß
IBM 360°½²Ê¦ÍÅÕÐļ£ºÃ¿¸ö°®¼¼ÊõÀÖ·ÖÏíµÄÈ˶¼Óлú»á
´´½¨Òƶ¯¸»»¥ÁªÍøÓ¦ÓÃ(RIA)µÄÉè¼Æ¼¼ÇÉ
Ïà¹ØÔÞÖúÉÌ

»ã¼¯×îÐÂRIA¼¼ÊõÏà¹Ø×ÊÔ´£¬ÌṩFlash¿ª·¢Æ½Ì¨Ïà¹Ø¹¤¾ß¸ßËÙÏÂÔØ£¬Ãâ·Ñ»ñµÃAdobeÈí¼þµÄ²úÆ·ÐòÁкš£
Flex¿ª·¢ÖеĹؼüÒªËØÖ®Ò»ÊÇʹÓÃÄ£¿éºÍÔËÐÐʱ¹²Ïí¿â£¨Runtime Shared Libraries£¬RSLs£©£¬ÕâЩģ¿éºÍ¿â¿ÉÒ ......

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·¢³öÇëÇ󣩣¬Ô­ÒòÊÇȱ·¦²ßÂÔÎļþȨÏÞ¡£
¿çÓò·ÃÎÊÐèÒªÅäÖòßÂÔÎļþ,http://localhost:8080ºÍhttp://127.0.0.1:8080±»¿´×öÊDz»Í¬µÄÓò,д¸öcrossdomain.xml,·Åµ½Õ¾µã¸ùĿ¼ÏÂ:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
ÕâÀïµÄ"*"Ö¸µÄÊÇÔÊÐíËùÓÐÕ¾µãµÄ·ÃÎÊ£¬Äã¿ÉÒÔ×Ô¼ºÖ¸¶¨,°Ñlocalhost,127.0.0.1¶¼Ð´µ½allow-access-from ÀïÃæµÄdomainÊôÐÔÖÐ. ......

ÕûºÏ Adobe Flex ºÍ Spring

       Ëæ×Å Adobe Flex ¼¼ÊõµÄ³ÉÊ죬ԽÀ´Ô½¶àµÄÆóÒµ¿ªÊ¼²ÉÓà Adobe Flex ¼¼Êõ¿ª·¢ RIA (Rich Internet Application)¡£ÔÚ³£¼ûµÄ RIA Ó¦ÓóÌÐò¼Ü¹¹ÖУ¬¿Í»§¶ËÓà Adobe Flex äÖȾ³öƯÁÁµÄ½çÃ棬¶øäÖȾ½çÃæËùÐèÒªµÄÊý¾ÝÔò´Ó·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐò»ñÈ¡¡£ÔÚ Java EE ÁìÓò£¬·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐòͨ³£ÊÇÔËÐÐÔÚ Java EE Ó¦Ó÷þÎñÆ÷ÖУ¬ÒÔ»ñÈ¡°²È«£¬ÊÂÎñ£¬¸ß¿É¿¿ÐÔµÈÆóÒµ¼¶ÌØÐÔ£¬ÕâÖ±½Ó´ßÉúÁËÕûºÏ Abode Flex ºÍ Java EE Ó¦Ó÷þÎñÆ÷µÄÐèÇ󡣶øSpring ÓÖÊǵ±Ç°Ó¦ÓÃ×î¹ã·ºµÄ Java EE Ó¦Ó÷þÎñÆ÷Ö®Ò»£¬±¾ÎĽ«Ö÷Òª½éÉÜÈçºÎÕûºÏÕâÁ½ÖÖ¼¼Êõ£¬Ê¹ÄãÄܹ»ÇáËɹ¹½¨¼È½¡×³ÓÖƯÁÁµÄ Web Ó¦ÓóÌÐò¡£ÕûºÏ Adobe Flex ºÍ Spring µÄ¹Ø¼ü¾ÍÔÚÓÚÌṩһÖÖ·½·¨Ê¹µÃ Adobe Flex ¿Í»§¶Ë³ÌÐò¿ÉÒÔºÜÈÝÒ×·ÃÎʵ½ Spring ¹ÜÀíµÄBean£¬²¢±ÜÃâ¹ý¶àµÄÅäÖá£ÀûÓÿªÔ´¿ò¼Ü BlazeDS ºÍ Spring BlazeDS Integration À´¼¯³É Adobe Flex ºÍ Spring ¿ÉÒÔ°ïÖúÄã×öµ½ÕâÒ»µã¡£
BlazeDS ºÍ Spring BlazeDS Integration
 BlazeDS, BlazeDS ÊÇ Adobe ¹«Ë¾µÄÒ»¸ö¿ªÔ´ÏîÄ¿£¬ÓÃÓÚʵÏÖ»ùÓÚ Flex µÄÇ°¶ËÓë»ùÓÚ Java µÄºó¶ËÓ¦ÓóÌÐòÖ®¼äµÄÔ¶³Ìµ÷ÓúÍÏûÏ¢´«ËÍ¡£¶ø Spring BlazeDS Integration ÊÇ Ado ......

FlexÒ³ÃæÌøת

Æäʵ¶ÔÓÚÕâ¸öÌâÄ¿ÊDz»Ç¡µ±µÄ£¬ÒòΪflexÖÐÊÇûÓÐÒ³ÃæÕâ¸ö¸ÅÄîµÄ£¬Ò³ÃæÔÚflexÀïÃæÆäʵ¾ÍÊÇÒ»¸ö¸öµÄCanvas£¬vbox£¬
hboxµÈµÈÖ®ÀàµÄ¶«Î÷£¬¿´µ½µÄ²»Í¬Ò³ÃæµÄÇл»£¬¾ÍÊÇÕâЩԪËØÒ»²ã²ãµÄ¶Ñ»ý£¬»òÕßÌæ»»£¬µ«ÊÇΪÁ˺ÃÀí½â£¬»¹ÊdzÆ֮Ϊ
"Ò³ÃæÌøת"¡£ÆäʵÎÒÃÇ¿ÉÒԶԱȴ«Í³µÄC/S¿ª·¢Ä£Ê½£¬Ã»Ò³ÃæÌøת£¬Ö»Óд°ÌåºÍÔª¼þµÄÏÔʾºÍÒþ²Ø¡£
       ÄÇôÔÚflexÖÐÔõôʵÏÖÒ³ÃæµÄÌøתÁË£¬ÎÒ×ܽáÁËÏ£¬Ö÷ÒªÓÐһϼ¸ÖÖ·½Ê½£º
      1¡¢Ê¹ÓÃViewStack×é¼þ£¬¾ßÌå´úÂëÈçÏÂËùʾ£º°ÑÒªÌøתµÄҳн¨³É MXML Component,È»ºóͨ¹ý ViewStack ×é¼þ°Ñ
ÕâЩҳ°üº¬½øÀ´
<mx:ViewStack id="storeViews" width="100%" height="550" creationPolicy="all">
   <shouye id="homeView" label="Ê×    Ò³" showEffect="WipeDown" hideEffect="WipeUp" />
   <leixing id="pView"    label="Ä£°åÀàÐÍ" showEffect="WipeDown" hideEffect="WipeUp" />
   <make id="supportView" label="Á¢¼´ÖÆ×÷" showEffect="WipeDown" hideEffect="WipeUp" />
</mx ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [13] [14] [15] [16] 17 [18] [19] [20] [21] [22]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ