A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Switching scenes from movie clips

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Posts
    10

    Switching scenes from movie clips

    Ok so I have my main time line...I have 2 scenes (scene 1 and scene 2) I put a movie clip into the first keyframe of scene 1. the movie clip has 30 frames...in the last frame of the movie clip I have a script that says

    on(release) {
    gotoAndStop("Scene 2", 1);
    }

    So basically when the movie clip reaches the end I want my movie to goto scene 2.....It's not working ...Not switching scenes..I've also tried to do it by frame label like-

    gotoAndStop(".Scene 2", "name");

    where name is my frame label.

    What am I doing wrong?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    do not use the Scene name. It is not recognised in a movieclip timeline.

    add the path to the main timeline (_parent)
    and use the frame label only -

    _parent.gotoAndStop("my_label");

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