Jump to content
Search Community

Embed video problem

rhinolu test
Moderator Tag

Recommended Posts

Yes, this is to be expected - when you dispose(true), you're telling the SWFLoader that you want its content to be disposed as well. One of the important tasks in making a swf eligible for garbage collection is stopping playback of all timelines within that swf, so SWFLoader does that for you. There are several other things that SWFLoader does for you in order to get around bugs in the Flash Player, so it should actually be a safer tool to use for loading and unloading.

 

One other problem is that you added the rawContent to your display list instead of using the content (which is a ContentDisplay). When dispose(true) is callled, it dumps the ContentDisplay and tells it to remove itself from the display list. You, however, lost that feature when you ripped the rawContent out of the ContentDisplay wrapper.

 

If you just want to get rid of the SWFLoader instance itself but allow its content to remain, just call dispose(false) on it. That looks like what you were trying to do (right?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...