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

Flexʼþ»úÖÆ»ù´¡(Ò»)

ºÜ¶à¿ª·¢ÈËÔ±¶¼ÖªµÀÈçºÎʹÓÃʼþ»úÖÆ£¬µ«È´²»Àí½âʼþ»úÖƵĻù±¾¹¤×÷Ô­Àí¡£ÔÚÕâÀïÎÒÃÇ̽ÌÖÒ»ÏÂActionScript 3µÄʼþ»úÖÆ(ÎÞÂÛÊÇÐÂÊÖ»¹ÊÇÀÏÊÖ£¬ÎÒÏàÐÅ¿´µ½×îºó¿Ï¶¨¶ÔÄãÓÐËù°ïÖú )¡£
1. Ê×ÏÈÀ´¿´Ò»ÏÂʼþ»úÖÆÖеļ¸¸ö»ù±¾¸ÅÄ
event objects(ÕâÀïÎÒÃǹÃÇÒ½ÐËüʼþ¶ÔÏó)£ºËùÓеÄʼþ¶ÔÏó¶¼ÊÇflash.events.Event»òÕßÆä×ÓÀà¡£±ÈÈç˵Êó±êʼþMouseEvent£¬¼ÆʱÆ÷ʼþTimerEvent¡£Ã¿¸öʼþ¶ÔÏóÖж¼°üÀ¨Ê¼þÀàÐÍ(type)ºÍʼþÔ´(target)£¬±ãÓÚevent listenerÖªµÀ¸ÃʼþµÄÀàÐÍÒÔ¼°ÊÇË­Å׳öÕâÑùµÄʼþ¡£
event dispatchers(¹ÃÇÒ½ÐËüʼþÔ´):ÊÇʼþ·¢ÆðµÄÖ÷Ìå¡£ËùÓеÄdispatcher¶¼ÊÇEventDispatcher»òÆä×ÓÀࡣʼþ´¥·¢Ô´±ØÐëÌṩAPIÈÃlistener½øÐжԸÃʼþµÄ×¢²á(register)¡£
event listeners(¹ÃÇÒ½ÐËüʼþ¼àÌýÆ÷):ÔÚAS 3.0ÖÐËüÍùÍù±íÏÖΪһ¸öº¯Êý¡£ÎÒÃDZØÐëΪÿ¸öÌØÊâµÄʼþºÍʼþÔ´×¢²áÒ»¸ö¼àÌýÆ÷£¬µ±Ê¼þ·¢ÉúµÄʱºò£¬Ê¼þÔ´(dispatcher)»á֪ͨ¸Ã¼àÌýÆ÷È¥´¦ÀíÖƶ¨µÄʼþ¡£
2. ÈçºÎ×¢²á¼àÌýÆ÷(registering Listener)
ÔÚAS 3.0ÖпÉÒÔͨ¹ýÏÂÃæµÄÓï·¨¸ñʽ½øÐÐ×¢²á¡£
dispatcher.addEventListener(eventName, listener);
µ±È»ÔÚFlexÖл¹ÓÐÁíÍâÒ»ÖÖ¸ñʽ£¬ÔÚmxmlÎļþÖжÔÒ»¸ö¿Ø¼þµÄʼþÖ±½ÓÖƶ¨Ò»¸ö´¦Àíº¯Êý£¬Èç
<mx:Button label="TestClick" click="clickHandler()"/>
3. ÈçºÎɾ³ý¼àÌýÆ÷(removing Listener)
ÔÚAS 3.0ÖÐÒÔÏÂÃæµÄ¸ñʽ½øÐÐɾ³ý
circle.removeEventListener(MouseEvent.CLICK, onClick);
Ó¦¸ÃºÜÈÝÒ×Àí½â¡£
µ«ÕâÀïÈ·ÓÐÒ»µãºÜÖØÒª£º¾¡Á¿É¾³ýÄãÒѾ­²»ÔÙʹÓõÄʼþ¼àÌýÆ÷£¬Õâ¸öÉæ¼°µ½Flex ÄÚ´æй©µÄÎÊÌ⣬ÒÔºó»áÓÐÏêϸ½éÉÜ¡£
ת×Ô£ºhttp://wmcai.blog.163.com/blog/static/48024200782442026437/


Ïà¹ØÎĵµ£º

FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ¼¸ÖÖ·½·¨


FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ·½·¨Ö÷ÒªÓÐÒÔϼ¸ÖÖ£º
·½·¨Ò»£ºÀûÓà brokenImageSkin ·ç¸ñÏÔʾһ¸öĬÈϵÄͼ£¬Ö»ÐèÉèÖÃCSS¾ÍÐÐÁË£¬ÈçÏ£º
<mx:Style>
     Image {
         brokenImageSkin: Embed("assets/404.jpg");
     }
 </m ......

adobe flex²¿Êð ʵ¼Ê²Ù×÷

Adobe flexµ½µ×ÊÇ×öʲôµÄ£¬ÎÒÔÚÕâÀï¾Í²»½øÐвûÊöÁË¡£Ö÷ÒªÊÇдÏ£ºflex²å¼þ¼¯³Éµ½MyEclipse/EclipseÖеķ½·¨ºÍ flex+javaÏîÄ¿µÄ²¿Êð¹ý³Ì
²å¼þ°²×°¹ý³Ì£º
1.°²×°Eclipse»òÕßMyEclipse;
2.°²×°FlexBuilder3 beta2²å¼þ°æ --  FB3_WWEJ_Plugin.exe;
   a.Ñ¡ÔñFlexBuilder3 µÄ°²×°Â·¾¶£¬¿ÉÒÔÈÎÒâÑ¡Ôñ£¬È»ºóµã ......

Flex ºÍ.NETЭͬ¿ª·¢ÀûÆ÷FluorineFx

 ÔÚ±¾ÏµÁÐÇ°Ã漸ƪÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹Ø֪ʶµã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......

½«HTMLÒ³ÃæǶÈëFLEXÓ¦ÓÃÖÐ

ÏÈÓÃÏֳɵÄ×é¼þÍæһϣ¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
   ......

flex serverÏîÄ¿µÄ·¾¶ÅäÖÃ

Root folder
Õâ¸öĿ¼Ӧ¸ÃÌîдtomcatĿ¼Ï£¬ÄǸöjavaÏîÄ¿µÄËùÔÚλÖã¬Èç¹ûΪ´í£¬»á³öÏÖ“ Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.”ËüÌáʾ¸ÃĿ¼WEB-INF²»´æÔÚflex-config.xml»òservice-config.xmlÎļþ£¬Èç¹ûÊÇÒ»¸öÕý³£µÄjavaÏîÄ¿£¬¾Í»áÓÐÕâ¸öÎļ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ