Unloadmc flash5

can anybody teach me how to unload a mc with this

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

how to unload the button.swf

_root.dropzone.unloadMovie();

no?

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:

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