Copy link to clipboard
Copied
Hi, a good trick I used to do to reload a flash file in AS2, was just to do:
loadLevelNum(_url,0)
this reloaded the current flash movie into itself, therefore clearing all objects regardless of who has reference to them and creating a brand new flash movie.
this is the main Objection i have with AS3. Is there anyway to smulate that in AS3? thanks.
Copy link to clipboard
Copied
that was loadMovieNum().
and no, there's nothing comparable in as3.
Copy link to clipboard
Copied
yeah, sorry, it's LoadMovieNum
But, I liked it because it gave me a clean break from the current flash content into a new clean flash movie. So, there is no way to reload a swf movie in AS3? That would really suck if it's the case.
Copy link to clipboard
Copied
i can't think of anything comparable.
Copy link to clipboard
Copied
Ah... I found something, although not as good as UnloadMovie... it's called...
loader.unloadAndStop()
it stops cold the timers, the sounds, etc.. and unloads the movie. Close enough.
Copy link to clipboard
Copied
that's for unloading a swf that you loaded into a main swf. it won't unload your main swf.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now