[ActionScript 3.0] AS3 in loader cannot be uninstalled completely

Source: Internet
Author: User

I test found that the instantiation of the loader can not be completely uninstalled, peer has no way, please enlighten!

1 ImportFlash.display.Loader;2 Importflash.net.URLRequest;3 Importflash.events.Event;4 5 varLdr:loader =NewLoader ();6Ldr.name ="Ldr_0";7Ldr.load (NewURLRequest ("D:/svn/resources/src/kiosksystem/kiosksystem_tianjin/assets/images/weather/weather_icon/b_nothing.png" ));8 Ldr.contentLoaderInfo.addEventListener (event.complete,onloaded);9  This. AddChild (LDR);Ten functionOnLoaded (e:event):void One { A ldr.unloadandstop (); -Ldr.visible =false; -LDR =NULL; theTrace (LDR, (E.target as Loaderinfo). Loader, (E.target as Loaderinfo). Loader.name);//null [object Loader] Ldr_0 -      -     varTemp:loader =(E.target as Loaderinfo). Loader as loader; -Trace (Temp.name, (E.target as Loaderinfo). Loader.name);//ldr_0 ldr_0 +Temp.visible =false; -temp =NULL; +Trace ((E.target as Loaderinfo). Loader, (E.target as Loaderinfo). Loader.name,temp);//[object Loader] ldr_0 null A}

[ActionScript 3.0] AS3 in loader cannot be uninstalled completely

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.