A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loadMovie() incompatible with gotoAndPlay()?

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    8

    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

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    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.

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    8
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center