Garbage collector does not work any way

when you unload some loaded swf file (Loaded with Loader
class) it's Event Listeners continue their jobs
is there anyway to solve this problem
for example please made three files
l1.fla , l2.fla , main.fla
in l1 creat a MovieClip with instance name "symbol_mc"
and type these code
this.addEventListener(Event.ENTER_FRAME,test1,false,0,true);
function test1(evt:Event){
trace("l1");
symbol_mc.addEventListener(Event.ENTER_FRAME,test2,false,0,true);
function test2(evt:Event){
trace("symbol");
in l2 only create a text to see if file is loaded
finally in main
create to buttons with instance names btn1_btn and btn2_btn
and add these codes
var lo:Loader;
var mc:MovieClip = new MovieClip();
this.addChild(mc);
function loadSomeFile(url:String) {
lo= new Loader();
this.addChild(lo);
lo.contentLoaderInfo.addEventListener(Event.COMPLETE,
movieLoaded);
lo.load(new URLRequest(url));
function movieLoaded(evt:Event) {
this.removeChild(mc);
mc = MovieClip(lo.content);
this.removeChild(lo);
this.addChild(mc);
lo=null;
btn1_btn.addEventListener(MouseEvent.CLICK,load1);
function load1(evt:MouseEvent) {
loadSomeFile("l1.swf");
btn2_btn.addEventListener(MouseEvent.CLICK,load2);
function load2(evt:MouseEvent) {
loadSomeFile("l2.swf");
create swf files l1 and l2 and then preview main
first try btn1_btn and then try btn2_btn you will see after
unloading l1 and loading l2 event listeners will continue their
jobs!!!!!!!
after loading l1 ev

did you checked what you write in adobe devnet?
you said i must null loader but i not only did it but also
unloaded that before but event continue his life
i think it is not error of loader class it is gc error for
another example of it's errors try this create 2 frame fla file
add one symbole in frame 2 and then add event listener to
enterframe event of symbol
with two button add navigation for going to frames one and
two
you will see each time you enter frame 2 another
eventlistener will add to symbol and for example if your listener
rotate symbol by one degree you will see each time speed will
increase because each of them rotate object 1 degree

Similar Messages

  • My Home Sharing does not work any more after latest iTunes update

    After iTunes update to 11.1.3 my Home Sharing does not work any more!
    It worked just fine for several years...
    I tryed to do everything I could find on Apple support... NOTHING works.
    Most of Apple so called updates turn out real crap...
    I am wondering whats happening to Apple?...

    Hello igor_rena,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Best of luck,
    Mario

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • HT4623 I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....

    I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....Any advice appreciated.

    give us more to work with in terms of info then "basically does not work any more"
    it can be from it's on fire to the a key on the onscreen keyboard don't respond

  • One speaker of my i phone 4s does not working any more and my phone still new ?

    One speaker of my i phone 4s does not working any more ? and it s still new !

    There is only one speaker, other side is microphone. You
    may wish to download and become familiar with the user guide.
    It is a link in Safari on your iPhone, you can download the user
    manual after you download iBooks app, or you can find it here:
    http://support.apple.com/manuals/#iphone

  • Since IOS7,The synchronization itunes does not work any more

    since IOS7, the synchronization itunes does not work any more....

    Hi martinafromlimassol,
    Welcome to the Apple Support Communities!
    I understand that you iPhone has been dropped and the display no longer functions. In this situation, it may be necessary to have your iPhone 5 evaluated for repair. Please use the attached link for information on the process of having your iPhone evaluated. 
    iPhone Repair and Service - Apple Support
    Best regards,
    Joe

  • My sons power button on his iPhone 4S does not work any more, does anyone know how much it will cost to fix? 1 year warranty just ran out.

    My sons iPhone 4S power button does not work any more, does anyone know how much it costs to fix? 1year warranty has just expired

    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4S
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.

  • I-5 vibration function does not work - any ideas?

    i-Phone 5 vibration function does not work - any ideas why?

    I am having similar issues.  I took to Apple Genius Bar today and of course it would not do it. His suggestion was to restore iOS 6 and see what happens.  I'm currently restoring and I'll see what happens

  • My iphone 4s will not connect to networks.  the button is greyed out and cannot turn o.  I have reset the network settings and it still does not work - any ideas?

    My iphone 4s will not connect to networks.  the button is greyed out and cannot turn on.  I have reset the network settings and it still does not work - any ideas?

    Thank you I tried the reset again did not fix- I think I am down to calling Apple and paying for a tech - phone company says it is a software problem.  I just updated to 8.1.3  - I thought the update might fix it.

  • Online help does not work any more (Lightroom 3, CS5 Suite)

    Hi,
    since a few days I get an error when using the Lightroom Online (german edition) help on my Win 7 64bit computer.
    When searching for something there pops up a dialog box stating "Unerwarteter Fehler. Suchen Sie erneut", that's like "Unexpected error. Please search again".
    My girlfriend has the CS5 Web Suite. She gets the same error on a diffferent computer (but also Win7 64bit). She also got an error 16822 when the help client tried to update. This error is already known and so I was able to fix it.
    But the error when using the help itself is still there.
    Any ideas.
    PS: The help does work when I switch from online to local search.

    Yes
    I tried again— but NO – it does not work
    Help OPENS
    But when I click on “lightroom help – F`1”  
                    Ie the internet access to adobe help
    It does not work
    lke
    Lloyd K Everson MD
    43 N Royal Fern Dr
    The Woodlands, TX  77380
    281-364-0247
    37 Stag Gulch Ct
    Cordillera, CO  81632
    970-926-0247
    Cell   281-797-1444
    <mailto:[email protected]> [email protected]
    Chairman, Life Beyond Cancer Foundation
    <mailto:[email protected]> [email protected]

  • Vault does not work any more Aperture 2.1.1

    Hi,
    I just experienced that the vault function does not work anymore for me. When I click on the icon to show the vaults I created, nothing happens and Aperture seems to hang for some time. Sometimes it finally comes back and I can quite Aperture normally. Sometime I just need to force exit.
    I switched to a different library, where no vaults have been created and when I tried to create one by opeing the vault area first, I got the same effect. When I select directly "create vault", it creates the file, but it does not put any content in.
    I'm using Aperture 2.1.1 and MacOS 10.5.4.
    Any hints ?

    I had a similar problem. A portable Maxtor USB drive worked fine as a vault till this am, then message that there is not enough space. Get Info tells me about 54 GB available, and my entire Aperture Library is only 54 GB. Up till today it did incremental backups just fine.
    I added a firewire drive and it seemed to work as a second vault, except while Get Info for the drive says it has a 50 GB Aperture library now, the Vault window in Aperture says this vault is backed up but it only used up 3 GB of the drive. The second widow for the original drive shows the expected amount used, ie about 50 GB.
    So if I run Get Info on the firewire drive, it tells me I have a 50 GB Aperture library, but the small vault window in Aperture says only 3 GB.
    I was going to reformat the original USB drive and re-try it, but this last information is coflicting, Any ideas on how to proceed?
    Don

  • HT1430 My password does not work any longer. I type it in and it is telling me incorrect password. What do I do?

    My password does not work for my IPAD any longer.

    If you don't know your passcode for iPad, you have to restore your iPad as a new device in iTunes on your computer. 

  • Google talk video plugin does not work any more with Firefox 4. When clicking on the video chat icon, I am repeatedly asked to install the plugin, and it never works.

    Google talk audio/video plugin used to work fine on Firefox 3, but does not work anymore on Firefox 4. Every time I click on the video chat icon on google talk, I am asked to install the plugin, even if I have already installed it before. The plugin works properly on the latest version of IE on the same PC.
    Thanks for your help. I do not want to switch to Chrome or Opera, but if this bug is not fixed, I will have to.

    Not sure if installing IE 9 did it or not but I now see the camera in IE, FF and Chrome. Could be Facebook fixed the problem also.
    Thanks for the reply.
    George

  • "List Folder" function does not work any more on compiled .exe files in LabVIEW 8.2

    I used "List Folder" function in a splash screen VI to read the number of the subVIs within the .exe file. The number was used to create a progress bar. It worked with LabVIEW 8.00 but with 8.20 I get the error code 13 that means "LabVIEW:  File is not a resource file."
    I wonder is it a bug or a feature? Up to now I could not find any info about changing the .exe file format.
    If it is a feature, is there a way to get the list or any other information to make a progress bar 0...100%?
    With best regards,
    Mikhail Nagoga

    In LV 8.2, NI changed the exe format so that it no longer functions as an LLB. As far as I know, this is a feature and will not be changed back. I think it was changed to support some sort of security requirements in Windows Vista, but I don't remember where I got that notion from.
    As a workaround, you can build the exe as a small exe with an LLB or maybe save the list of VIs elsewhere (for example, have all of them as subVIs of the splash screen).
    Try to take over the world!

  • When i click mail icon,my mailbox does not appear.any way to fix?

    it was working fine then was asked if i wanted to sync my email adress to ical, icalender etc which i did. previosly i had an itunes software update and did a restart. now the computer is up and running i cant get my mailbox to open when i click on the mail icon like it usualluy does. the only way to get into my mailbox is to click on the mailbox header at the top and click on 'go to favourite mailbow'. Any way to fix this please?

    Log out or reboot and try again.

Maybe you are looking for

  • How do I turn off home sharing on devices I can no longer access?

    I have an old iPhone and an old PC which I no longer have access to (the iPhone is broken beyond fixing and the pc I gave up on months ago) I would like to remove them from my home sharing list to open up room. With the two unused devices I have the

  • How to make Firefox access the internet from Oracle Ent. Unbreakable Linux?

    Hello I have a Dell Duo Core x86 laptop that multiboots Windows 2003 Server, Windows XP and Oracle Enterprise Unbreakable Linux. I use Internet Explorer to access my email while at the library so I know my laptop can access the internet. I just insta

  • SAP Latest ,plz refer

    We are for looking for SAP IS Retail experts for Mumbai SAP APO or SCM with demand planning, PPDS, SNP modules exposure for Calcutta, Mumbai, Bangalore. Relevant exp : 4 – 5yrs Salary : no constraint Position : 4 slots in each. 3) Job Title: SAP Cons

  • Jcontrol.exe not starting.

    Hi all, We have a java stack N01 on our machine. We are unable to start the server successfully.. Problem is jcontrol.exe is not starting. Its status is "Some Processes running" all the time. In the AS JAVA Process Table of SAPMMC:::::  SDM is starti

  • Error while installing Lightroom on Microsoft

    Hi There, I try to install Lightroom 5 on my PC but always get the following error message during the installation of assembly component: HRESULT: 0x80070003 Please can anyone help? Thanks1 Hey Adobe: this question was already posted in 2011 by someo