PDA

View Full Version : unloadmc flash5



dunno
April 24th, 2003, 12:15 AM
can anybody teach me how to unload a mc with this

on (release) {
loadMovie ("button.swf",_root.dropzone);
{





how to unload the button.swf

upuaut
April 24th, 2003, 01:32 AM
_root.dropzone.unloadMovie();

no?

dunno
April 24th, 2003, 03:20 AM
Error opening URL "file:///E|/Study%20Flash/homepages/homepages/"

i recieve the message above when i use the following AS on another button


on (release) {
_root.dropzone.unloadMovie();
loadMovieNum ("portfolio.swf", 1);
}

:trout:

upuaut
April 24th, 2003, 04:13 AM
ok.. first off, why are you unloading the movie at all?

I would suggest instead, turning it's _visible property to false rather than unloading the movie. If you need it later to load another movie into, just set the _visible to true, and load the new movie. It will automaticaly kick the old one out of it self.

If you absolutely need the unloadMovie in there.. then I'll have to think about this. It might be that it's trying to delete dropzone for some reason.. I know that unloadMovie and attachMovie share references to each other in the a/s dictionary.. that might relate as well.
But really.. first ask yourself if you need to unload it. It'll save time. :)