|
-
loadMovie() incompatible with gotoAndPlay()?
Ok, here's the situation. I have a movie clip about three levels down from root. In it there are two main frames: "nothing" and "attack". In the "nothing" frame I have the following code:
stop();
loadMovie(_parent.creepPicRest,this);
In the "attack" frame, I have this code:
this.unloadMovie();
loadMovie(_parent.creepPicAtk,this);
On the last frame of the movie clip I have this code:
gotoAndStop('nothing');
Everything is fine on the first frame. The appropriate movie loads and everything. However, in the movie clip's "enterFrame" method, I try to make the movie gotoAndPlay('attack'). It won't go to that frame. No matter what I try, the movie clip will not move from the first frame. What am I to do? It seems like it should be simple, but it isn't working. Please help me.
Jeremy
-
A bit of confusion in your explanation... Must I understand that the "attack" label is in the same movie clip, you're loading that movie?
If so, when loading the movie, you're actually clearing any scripts, labels or whatever else content there was in that movie clip originally. So the "attack" label (and the enterFrame) doesn't exist anymore, once the movie is loaded... How could it go there?
You'd have to use another container clip, within that container clip(on which the script lies...) to load your movie into.
Last edited by oldnewbie; 09-30-2004 at 04:25 PM.
-
Thanks, I'll try that. Didn't know that loadMovie got rid of all scripts and labels and such.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|