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

flash actionscript

group:

Load Movie Clip Problem


Load Movie Clip Problem GRANADESIGN
2/19/2004 11:39:53 PM
flash actionscript:
Hello

I am having a problem with levels when loading a movie clip. Is there anyway
to on clip event it cks to see if a movie is on loaded on a level. If it has
been loaded it will leave current movie. If it does not have a movie it will
load a specified movie.
Thanks
Granadesign

Re: Load Movie Clip Problem Pea
2/20/2004 12:03:23 AM
Hi,

Usually you can check for some movie using a simple boolean. If there is no
movie loaded, the movie variable returns false.

e.g.
newMovie = this.attachMovie('aMovie','aMovie_1',2);
if (newMovie){
trace('movie exists!!!');
}else{
trace('movie doesnt exist');
}

Perhaps you can just go:

if (_level20){
// movie exists
}else{
// movie doesnt exist
}

But I haven't tried this.

Hope it helps...
Pea
AddThis Social Bookmark Button