A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Noob Question: How Do You Make A Button Go To The Next Scene?

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    7

    Noob Question: How Do You Make A Button Go To The Next Scene?

    Okay, I'm making a test website.

    Scene 1:
    I have a preloader that loads up my first page. The first page has a BUTTON! I want this button to go to scene 2 when I click it!

    Scene 2:
    I have a preloader that loads up my second page. I have my second page here.

    All I need is the script for going to another scene.

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Toronto, Canada
    Posts
    305
    you should only have one preloader. The preloader loads the entire swf, not the scene, so to have 2 preloaders is redundant.

    You should label your button "nextButton" or soemthing like that. And in the code on your first scene you can write.

    nextButton.onRelease = function() {
    nextScene();
    }

    hope this works for ya

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