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/
Ïà¹ØÎĵµ£º
·¸ÁËÒ»¸ö¼«µÍµÄ´íÎó£¬Õâ¸öÔÒòÊÇ×Ô¼ºÔì³ÉµÄ£¬ÊÇ×Ô¼º°Ñ
¸ÄΪ±¾µØ×Ô¼º¼´¿É£¬
²éÁËЩӢÎÄÍøÕ¾µÄ½â¾ö·½°¸£¬ËµÊÇʲôϵͳÉý¼¶£¬Åµ¶Ùɱ¶¾Èí¼þÎÊÌ⣬¶¼²»ÊÇ×Ô¼ºÒªµÄ´ð°¸£¬ÊÇ×Ô¼ºÒÔÇ°²»Ð¡ÐĸÄÁË£¬ºóÀ´ÎÞÂÛÔõôжÔØ¡¢Éý¼¶¡¢ÖØ×°flash²å¼þ¶¼Ò»¸öÑù
http://hi.baidu.com/phperbo/blog/item/bf77fefb29a73b1e6d22ebe4.html
ÀÏÊÇÓö¼û ......
ÔÚ±¾ÏµÁÐÇ°Ã漸ƪÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹Ø֪ʶµã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......
First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......
Ô´ÌùµØÖ· http://www.riachina.com/showtopic.aspx?topicid=8556#
ÓÉÓÚLocalconncetionµÄijЩÏÞÖÆ(һ̨¿Í»§Ö»¿ÉÒÔʹÓÃÌض¨Ãû×ÖµÄÒ»¸öÁ¬½Ó£¬ÕâÑùµÄ³ÌÐòÈç¹û¿ªÁ½¸ö´°¿Ú¾Í»á·¢ÉúÒì³£)£¬½ñÌìÏÐ×ÅûÊÂ×öÁËÒ»¸öÕâÑùµÄÊÔÑé¡£ÈÃFlash CS3ºÍFlexµÄ´úÂë¿ÉÒÔÏ໥µ÷Óã¬ÎªÁËÏÔʾЧ¹û£¬ÔÚË«·½µÄ½çÃæ·Ö±ð·ÅÖÃÁËÒ»¸öÎı¾ÊäÈë¿òºÍÒ»¸ö°´Å¥¡ ......
Ò»°ãÀ´½²£¬ÔÚwindowsÉÏ°²×°Èí¼þ´ÓÀ´¶¼²»ÊÇʲôÄÑʶù£¬µ«FMSÈ´ÔÚ°²×°¹ý³ÌÖÐ"³äÂú"ÁËÎóµ¼£¨ºÃ°É£¬ÆäʵҲ¾ÍÊÇ¿äÕŵÄ˵·¨¶øÒÑ£©
1.ÏÂÔØFMS3.5
http://www.adobe.com/products/flashmediainteractive/?promoid=DJDTG
ÕâÉÏÃæÓÐÒ»¸öÃâ·Ñ¿ª·¢°æ(³ýÁËÁ¬½ÓÊýÓÐÏÞÖÆ£¬ÆäËü¹¦ÄÜÍêÈ«Ò»Ñù)
2.һ·Next°²×°
×¢ ......