A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: scene jump

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    11

    scene jump

    I'm trying to write up an action script to jump from intro movie in scene 1 (labeled 'intro') to the actual flash site in scene 2 (labeled 'homepage') I tired to use a gotoAndplay command but that didn't work out to well. Can someone please point me in the right direction?

    thanks

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Again, I guess for the 5th time only today, you cannot target scene names from movie clips. Use frame labels and add _root to your path:

    on(release){
    _root.gotoAndPlay("frame_label");
    }

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    11

    thanks

    Actually, I have not read your other 4 posts. I'm assuming they have to deal with the 'onRelease' command. I on the other hand do not have to deal with it. I'm just jumping straight in from intro movie to homepage. OR in this case from label to label.

    -vw

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Just forget the button's on release stuff, but use the same action line.

    _root.gotoAndPlay("frame_label");

  5. #5
    Junior Member
    Join Date
    Mar 2002
    Posts
    11

    oops

    I think I forgot to mention the most important part

    I have a movie playing at the end of the main root.

    so it looks something like this:

    in the BG I have this continual looping BG movie
    at frame 40 there is a stop() action.
    at frame 40 an imbedded movie is playing.

    I tired to put the:
    _root.gotoAndPlay("frame_label");

    inside the last movie playing to see if I can get it to jump to the next scene but
    that proved useless.


    thanks again for the script.

    -vw

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Question is do you have a frame labeled frame_label in this other scene you're targeting? And is it unique?
    I've been doing this and giving out this recipe for 3 years now, think I know it works!

    What else have you not said? And rather not saying things, why don't you attach your .fla, then we can see for ourselves what you're doing wrong!

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