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

flex swfloader unload

 
ÕâÑùµÄÒ»ÖÖÇé¿ö£º
ʹÓÃLoaderÈ¥loadÒ»¸öswf:
var fileURL:String = “assets/test.swf”
var swfLoader:Loader = new Loader();
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
swfLoader.load(new URLRequest(fileURL));
function swfLoaded(evt:Event):void{
    addChild(swfLoader);
}
ÕâЩÊǼÓÔØÍⲿswfÔÚAS3.0ÖÐ×î»ù±¾µÄ´úÂ룬Èç¹ûÄãÔÚÎę̀ÉÏÓÐÒ»¸ö°´Å¥,µã»÷ʱȥµ÷Óà swfLoader.unload()£¬°´µÀÀíµÄ»°Ó¦¸Ã»á°Ñ¼ÓÔص½swfLoaderÀïÃæµÄtest.swf¸øÇå³ý¡£
ÎÊÌâ²úÉú£º Èç¹ûtest.swfÖаüº¬ÉùÒô£¬Ôò»á³öÏÖµ÷ÓÃunload·½·¨ºóÉùÒô»¹ÊÇ´æÔÚ¡£
ͨ³£Çé¿öÏ»ỳÒÉ×Ô¼ºµÄ´úÂëÊDz»ÊÇÓÐÎÊÌ⣬»òÕß»¹ÊDZðµÄʲô¡£¡£¡£µ«ÊǼ´Ê¹ÔÚ×î¼òÇé¿öÏÂÒ²³öÏÖÕâÑùµÄÎÊÌ⣬ÄǾÍҪ׷ѰԵÓÉÁË¡£ÔÚÍøÉÏÕÒÁ˺ܶàÏà¹ØµÄÎÄÕ£¬´ó²¿·Ö¶¼¸øÁËÕâ¸öÁ´½Ó£º http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html  gskinner£¬ºÜÇ¿µÄÍŶӣ¬ÒÔºóÔÙ½éÉÜÁË¡£ÀïÃæÌå½éÉÜÁËÎÊÌâ³öÏÖµÄÇé¿ö¡£
unloadÊÇflash player9µÄÒ»¸öbug£¬³öÏÖµÄÇé¿ö¾ÍÊÇflash playerÎÞ·¨»ØÊÕloaderÖÐloadµÄÔª¼þ£¬unload×öµÄ¹¤×÷Ö»Êǽ«loadµÄÔª¼þÒƳýLoaderµÄdisplay list£¨ÏÔʾÁÐ±í£©¡£¶øÖ»ÒªloadµÄswfÖаüº¬¸´ÔӵĴúÂ룬»òÕß˵ÓÐÈκÎʼþÕìÌý´úÂë¾ÍÎÞ·¨Ê¹½«Æä»ØÊÕ£¬µ±È»Ò²¾ÍÎÞ·¨»ØÊÕËûÕ¼ÓõÄÄÚ´æ¡£Èç¹ûÓдóÁ¿µÄ¼ÓÔصĻ°ºÜÓпÉÄÜÈóÌÐò±ÀÀ£¡£È»¶øÈç¹ûswfÖÐÓÐÉùÒô¸üÊÇÖ±½ÓÓ°Ïì¡£×ܲ»ÄÜÍ£Ö¹ËùÓÐÉùÒô°É¡£
½â¾ö·½·¨:
¶ÁgskinnerµÄÄÇƪÎÄÕ£¬Äã»á·¢ÏÖËû²¢Ã»ÓÐÖ±½Ó¸ø³ö½â¾ö·½·¨£¬Ö»ÓÐһЩ½¨Òé¡£¶ÁÁËÆÀÂÛÄã»á·¢ÏÖ¸üÊÇÓÐÒâ˼£¬¿ªÊ¼´ó²¿·ÖÊÇ¿ä½±£¬µ½Á˺óÀ´È´ºÜ¶àÊDZ§Ô¹£¬ËµÊ²Ã´Ö»ÊÇ̸£¬Ã»Óнâ¾ö·½·¨°¢Ê²Ã´µÄ£¬¶øÇһᷢÏÖûÈË˵×Ô¼ºË³Àû½â¾öÁËÎÊÌâ¡£¿´Ñù×ÓÕæÊÇÒ»¸öºÜ´óµÄbug¡£´ÓÎÒ¸öÈËÀ´ËµÎÒÊÔÁËÆäÖеÄһЩ·½·¨£¬Ò²Ã»Óгɹ¦¡£µ«ÊÇÆäÖÐÓÐÒ»ÖÖ·½·¨ÖµµÃÎÒÃÇÑо¿£¬½Ð“GC“£¬À¬»ø»ØÊÕ»úÖÆÇ¿ÐÐÖ´ÐУ¬ÓÐÁ½ÆªÎÄÕ¿ÉÒԲο¼£ºhttp://bbs.actionscript3.cn/thread-234-1-1.html¡¡¡¡»¹ÓоÍÊÇ£ºhttp://www.ultrashock.com/forums/random-chat/failure-to-unload-flash-player-9s-dirty-secret-99237.html
Ö÷Òª´úÂ룺
package ...
{   
    import flash.display.Loader;   
    import flash.net.LocalConnection;    
  &


Ïà¹ØÎĵµ£º

FlexÊÇʲô

FlexÊÇ RIA(rich internet applications,¼´¸»¿Í»§¶Ë)µÄÒ»ÖÖ¼¼ÊõʵÏÖ,ÏÂÃæÎÒÃÇ°ÑËü¼°ÆäÏà¹ØµÄ֪ʶÓëjava×ö¸ö¼òµ¥µÄ¶ÔÕÕ,ÓÉÓÚ¸öÈËˮƽÓÐÏÞ,ÏÂÃæµÄ±È½Ï½ö¹©²Î¿¼:
1.RIA     vs   ¿çƽ̨µÄ±à³Ì¼¼Êõ
2.Flex    vs   java
3.flex framework  vs jdk
4.flex buil ......

asÓëjsÏ໥ͨÐÅ£¨flexÖе÷ÓÃjsº¯Êý£©

FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
     1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
     2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä·µ»ØµÄÖµ¾ÍÊÇJsº¯ÊýËù·µ»ØµÄÖµ
Jsµ÷ÓÃAsµÄ·½·¨ÊÇ£º
     1¡¢µ¼Èë°ü £¨import flash.exte ......

web¼´Ê±Í¨ÐŵÄFlex½â¾ö·½°¸

      Ìáµ½web¼´Ê±Í¨ÐÅ£¬¿ÉÄÜ´ó¼ÒÁ¢¼´»áÏëµ½ajax¶¨Ê±ÇëÇó¡¢·þÎñÆ÷ÍƵȽâ¾ö·½°¸£¬µ«ÕâÀïÎÒҪ˵µÄÊÇÒ»ÖÖ×ۺϵĽâ¾ö·½°¸£¬Ê¹ÓÃAdobeµÄFlex XmlSocket¡¢javascriptÒÔ¼°·þÎñÆ÷¶Ë¼¼Êõ£¬½¨Á¢ÕæÕýµÄweb¼´Ê±Í¨ÐÅ¡£µ±È»Õ⻹ÊÜÒæÓÚflashµÄÆÕ¼°£¬´ó²¿·ÖÓû§µÄä¯ÀÀÆ÷¶¼°²×°ÁËFlash player²å¼þ£¬´Ó¶ø±£Ö¤´Ë·½°¸Î ......

MyEclipse 7.5,MyEclipse 8.0Öа²×°Flex²å¼þ

²»¿É·ñÈÏMyEclipseÏÖÔÚÔ½×öԽǿ´ó£¨±Ï¾¹ÊÇÊշѵÄÂ£¬Ç¿´óµ½¿ªÊ¼ÅųâµÚÈý·½²å¼þ£¬ÕâÓÐЩ²»·ûºÏEclipseµÄ³õÖÔ£¬Eclipse¾ÍÊÇ¿¿Á¼ºÃµÄÀ©Õ¹ÐÔ·¢Õ¹ÆðÀ´µÄ¡£
MyEclipse´Ó7.5¿ªÊ¼£¨7.0ûÓùý£¬²»ÖªµÀ£©£¬ÍêÈ«¸Ä±äÁ˳ÌÐò½á¹¹£¬ÏÖÔÚÀ©Õ¹µÚÈý·½²å¼þ ÔÙҲûÓÐÒÔÇ°ÄÇô·½±ãÁË£¬ÌرðÊÇlink·½Ê½£¬Õâ¶Ô³ÌÐòÔ±À´ËµÊÇÖÂÃüµÄ¡£Flex Plugin ° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ