3 Replies Latest reply on Nov 2, 2010 3:39 AM by A Unique Username

    [SWF] and [Unload SWF] in Debug mode

    Joshua Stearns

      I am debugging my application and I am noticing some strange output in my console window.

       

      I will get the same line duplicated, it looks like this:

      [SWF] C:\Users\Me\Desktop\Development\flash\bin-debug\main.swf

      [SWF] C:\Users\Me\Desktop\Development\flash\bin-debug\main.swf

      [SWF] C:\Users\Me\Desktop\Development\flash\bin-debug\main.swf

       

      Then at a later state in the application I see this:

      [Unload SWF] C:\Users\ Me\Desktop\Development\flash\bin-debug\main.swf

      [Unload SWF] C:\Users\ Me\Desktop\Development\flash\bin-debug\main.swf

      [Unload SWF] C:\Users\ Me\Desktop\Development\flash\bin-debug\main.swf

       

      Can someone exaplain to me what this means, and why I see duplicates of the exact same lines?

        • 1. Re: [SWF] and [Unload SWF] in Debug mode
          Anirudh Sasikumar Adobe Employee

          Hi,

           

          In Flash Player 10.0, these messages indicate that RSLs are being loaded (and unloaded) by main.swf.

           

          If you turn RSLs off, you should only see one message.

           

          In Flash Player 10.1, this message is more verbose: it has /dynamic/1, /dynamic/2 etc. to indicate that RSLs are being loaded.

           

          Thanks,

          Anirudh

          • 2. Re: [SWF] and [Unload SWF] in Debug mode
            dittgen

            I would like to add a question to this topic, but instead of describing it, I would like to refer to this forum, where it was described very good: http://www.gotoandlearnforum.com/viewtopic.php?f=33&t=28730

             

            In short:

            When the loader object is only referenced by a local variable within a method and there's no other reference to the loader, other than the EventListener, the loaded SWF file is being sporadically unloaded (by the GC perhaps) before I am able to access the loader.content! That's kind of a bug, I guess and not acceptable!

             

            So any help would be much appreciated!

             

            Regards,

            Matthias

            • 3. Re: [SWF] and [Unload SWF] in Debug mode
              A Unique Username

              I have the exact same problem as Mathias referes to.

               

              I am building an AIR application that supports multi-touch gestures and seems like whenever I start pinching or rotating objects on the screen by using the gestures the [UnloadSWF] time.swf/[[DYNAMIC]]/1 error appears (time.swf is my application of course).

               

              I have tried whatever I could come up with but nothing seems to help!

               

              As mentioned elsewhere it could be the garbage collector but I can not find any logic in the way the swf gets removed.

               

              Hope somebody can come up with a solution....

               

              The best

              Martin