all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

unloadmovie


unloadmovie brentwood
6/20/2004 9:07:59 PM
flash actionscript:
I can't for the life of me figure out unloadMovie: I'm using MX
on (press) {
unloadMovie(gallerypages.swf);
loadMovie("gallery1.swf", "theClip");
}
The movie unloads, but the new movie doesn't load. I will appreciate all the
help I can get.
russ


Re: unloadmovie brentwood
6/20/2004 11:11:39 PM
The movie that I'm trying to unload is called "gallerypages" The movie that I'm
loading is "gallery1" The instance name is theClip - if that make sense.
Obviously I'm a real newbie, but this is the last part of the site to be
completed. BTW, this is the new code.... can you help me..
.on (release) {
loadMovie("gallery1.swf", "theClip");
}
on (release) {
unloadMovie(gallerypages);
}
Re: unloadmovie brentwood
6/21/2004 4:11:33 AM
well, I'm beside myself I next tried :
on (release) {
_root.unloadMovie("gallerypages.swf");
_root.loadMovie("gallerypage1.swf");
}
This not only unloaded my gallerypages swf, but it also unloaded my main
movie. Any other suggestions?
thanks in advance
Russ
Re: unloadmovie urami_
6/21/2004 5:16:27 AM


[quoted text, click to view]

Flash has no idea what is SWF file , it either recognize target or level
so if you want to download something you should be using
unloadMovieNum(1);
or
unloadMovie("holderClipName");
Also , you can load your second movie in same place you had the first file.
Flash can hold one instance per holder clip and per level so by loading new content
the previous one will be replaced and there won't be need for Unloading.


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
Re: unloadmovie urami_
6/22/2004 9:13:12 AM


[quoted text, click to view]

assume you load gallerypages.swf in theCLIP
loadMovie("gallerypages.swf", "theClip");

now you want to unload it and load gallery1.swf

simply

loadMovie("gallery1.swf", "theClip");


theCLIP can ONLY have 1 movie loaded, if you load second movie in already full
container, the first one get trashed automatically so you don't need to unload it at all.

if you want to unload that refer to the container name not the file

unloadMovie("theCLIP");





--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
AddThis Social Bookmark Button