Zyke Posted April 6, 2013 Share Posted April 6, 2013 Is there a way I can call a function whenever a SWF has finished unloading? I've searched in the docs, but I can't find what I need. Link to comment Share on other sites More sharing options...
GreenSock Posted April 7, 2013 Share Posted April 7, 2013 You can listen for the SWFLoader's "unload" event. http://api.greensock.com/as/com/greensock/events/LoaderEvent.html#UNLOAD Is that what you were looking for? Link to comment Share on other sites More sharing options...
Zyke Posted April 7, 2013 Author Share Posted April 7, 2013 You can listen for the SWFLoader's "unload" event. http://api.greensock.com/as/com/greensock/events/LoaderEvent.html#UNLOAD Is that what you were looking for? Well, that notifies me when the unload has started, right? I wanted it to notify me when the unload has finished, but I think I can find a way around, thanks Link to comment Share on other sites More sharing options...
GreenSock Posted April 8, 2013 Share Posted April 8, 2013 I don't think that kind of thing is asynchronous, but even if it is, I don't think Flash offers any way to know when that finishes. LoaderMax fires its "unload" event AFTER the unload has been performed on the core Adobe classes, if that's any consolation. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now