dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Scene Switching

Hybrid View

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    32

    Scene Switching

    I have to Scenes. All I want to do is on Scene 1 press a button that hides Scene 1 and Shows Scene 2. And then, Another button on Scene 2 will hide itself and show Scene 1. I have tried the following to no avail. Please help:

    // .as on button in Scene 1
    on(release){
    gotoAndPlay("Scene 2",1);
    }

    If I put a trace in there I can see that it does fire, however my second scene never shows up. Anyone know why?

    CFDaddy

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    I would always avoid using scene names, try putting a frame label on the first frame of scene 2, and another frame label on the first frame of scene 1, then on your button (in scene 1 to go to scene 2) use

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

  3. #3
    Sleepy
    Join Date
    Apr 2001
    Location
    Tallahassee, FL
    Posts
    498
    hmm.... you may also want to look into using the nextScene() and prevScene() actionscripts as well.
    Uh...where's my underwear?

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Posts
    4
    catbert303:

    Thankyouthankyouthankyouthankyouthankyouthankyouth ankyouthankyouthankyouthankyou

    I had been pulling my hair because of the same problem for about 45 minutes and your solution worked perfectly

    So thankyouthankyouthankyouthankyou

    Sincerely,
    malditoloco

  5. #5
    Sleepy
    Join Date
    Apr 2001
    Location
    Tallahassee, FL
    Posts
    498

    sweet!!!

    way to go
    Uh...where's my underwear?

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