A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: button -> next scene ?????

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    8
    Hi,
    I'm kinda new at flash and i'm trying to build my first page, now i'm trying to make a button. when i push the button (in scene 2) it should go to scene 3 of the movie.

    the action is: on press goto and play scene 3 frame 1.

    In the last keyframe of scene 2 i gave the action stop()

    and in the layer of the button in the last keyframe i swapped the button (named button18) to the button with the name info1, this button is gave the action to go to scene 3 if i push it.

    With the action on press enter goto and play scene 3 it works properly.

    Please help me... i just can't figure it out.

    Thanks

    ( it's for a good purpose - i'm making a website for http://www.global-care.nl )

  2. #2
    MoiK78 Flasher moises's Avatar
    Join Date
    Sep 2000
    Location
    Madrid, Spain
    Posts
    251
    I have read your post two times and I can't see what r you asking for? What's the problem?

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    8
    Originally posted by moises
    I have read your post two times and I can't see what r you asking for? What's the problem?
    Well, when i push the button, the movies does not go to scene 3 frame 1. nothing happens when i push the button

  4. #4
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    on (release) {
    nextScene();
    }

  5. #5
    MoiK78 Flasher moises's Avatar
    Join Date
    Sep 2000
    Location
    Madrid, Spain
    Posts
    251
    Why don't you send me the fla and I take a look at it? Warn me if the file size it's over 500Kb....

    mgarcia@softmed.es

  6. #6
    Junior Member
    Join Date
    May 2002
    Posts
    8
    Originally posted by moises
    Why don't you send me the fla and I take a look at it? Warn me if the file size it's over 500Kb....

    mgarcia@softmed.es
    i can't right now, i'm at work (the netherlands)

    I will have to wait till i get home in about 6 hours

  7. #7
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    on (release) {
    nextScene();
    }


    That works. If its in a MC use:

    on (release) {
    _root.nextScene();
    }



  8. #8
    Junior Member
    Join Date
    May 2002
    Posts
    8
    Originally posted by NerdInside
    on (release) {
    nextScene();
    }
    Is that not the same as i already did?

    on (release) {
    goto and play (scene 3, 1)
    }
    or on (press) {
    goto and play (scene 3, 1)
    }
    ???
    Isn't the effect still the same?

  9. #9
    MoiK78 Flasher moises's Avatar
    Join Date
    Sep 2000
    Location
    Madrid, Spain
    Posts
    251
    in that case mail it to moisesgcd@ya.com which is my home mail but I agree with Nerdinside, his code should work fine for you... Perhaps you forget the ""?

    on (release) {
    gotoAndPlay ("Scene 3", 1);
    }
    or

    on (press) {
    gotoAndPlay ("Scene 3", 1);
    }

    [Edited by moises on 05-08-2002 at 06:25 AM]

  10. #10
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    You said next scene. No matter what scene that button is on, it goes to the next one

    on (release,press) {
    gotoAndPlay ("Scene 3", 1)
    }

    That would be the correct code, not that one you posted.

  11. #11
    Junior Member
    Join Date
    May 2002
    Posts
    8
    Originally posted by NerdInside
    You said next scene. No matter what scene that button is on, it goes to the next one

    on (release,press) {
    gotoAndPlay ("Scene 3", 1)
    }

    That would be the correct code, not that one you posted.
    thanks for the help !!!!

    i did not enter the whole code here because i'm not working with flash right now, i do that at home...
    and i don't know the whole code without seeing it.
    But what you entered above is the code i entered in flash

    Sorry for my english ( i'm Dutch)

  12. #12
    MoiK78 Flasher moises's Avatar
    Join Date
    Sep 2000
    Location
    Madrid, Spain
    Posts
    251
    Your English is fine to me. I'm Spanish

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