PDA

View Full Version : wantsta load external movie clip in level1


kemosabe
10-23-2006, 07:37 PM
big newbie to Flash 8, i just want to load a swf on top of another, in a new level. my level0 is called "main.fla". At the keyframe where I want the external movie clip to load, I have this:


//load Movie Behavior
if(this == Number(this)){
loadMovieNum("starbucks01.swf",_this);
} else {
this.loadMovie("starbucks01.swf");
}
//End Behavior


//...which replaces my level0 with starbucks01.swf. grrrr....

i've tried adding "_level1", etc. in the behaviors palette popup, but no dice. any advice for the humblest of newbies? i miss flash 5. sigh...

Flash Gordon
10-23-2006, 07:39 PM
"this" is never just a number. It is actually a usually MovieClip (or an object).

kemosabe
10-23-2006, 07:44 PM
??? i'm terribly sorry, but how should this code read instead?


//load Movie Behavior
if(this == Number(this)){
loadMovieNum("starbucks01.swf",_this);
} else {
this.loadMovie("starbucks01.swf");
}
//End Behavior

kemosabe
10-23-2006, 08:48 PM
i've been all over this board and cant find an answer. could anyone please please pretty please help me?

anonymous
10-24-2006, 12:25 AM
loadMovieNum("starbucks01.swf",1);

Will load your movie on level 1...