Jump to content
Search Community

SWFLoader cause VideoLoader cancel

rhinolu test
Moderator Tag

Recommended Posts

Hi,

 

Thank your Great TweenMax Libs!

 

I use VideoLoader to make a small video player lib.

When [sub.swf] use the lib, no problem.

But, [main.swf] loads [sub.swf] , something went wrong.

I found it invoked "Cancel event".

 

Please help me, thank you.

Link to comment
Share on other sites

That's because your onRemove() method is being called which is in turn calling the VideoLoader's dispose() method. That, of course, cancels any loading.

 

If you need to suppress the ADDED_TO_STAGE and REMOVED_FROM_STAGE events that occur initially when the swf loads (when it gets reparented into the ContentDisplay), you can set the suppressInitReparentEvents special property to true. In the vars parameter, just do suppressInitReparentEvents:true.

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...