A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: FLASH 5 Linking Scenes

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    4
    Hey,

    Does anyone know how to make Flash Buttons that has been placed in a movie clip link to other scenes. I make a pop out menu and it is a movie clip. Buttons are in the movie clip. When I assign actions to it telling it to go to another fram if released. But it just goes back to frame one of the introduction. Hope that is pretty clear. I'm doing this for a Graphic Arts class. If you want to see what I have done, I have the .fla file of the movie. Download it at

    http://www.freedrive.com

    My Username and pass is

    User: Quailbert
    Pass: 2345

    Thanks!

  2. #2
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    add this function to the main timeline

    Code:
    //variable is written to by each button in the menu MC
    iWantTogoTo="";
    function whereToGo () {
    	if (iWantTogoTo == "sceneTwo") {
    		gotoAndPlay ("Scene 2", 1);
    
    //you will need to write more else iff statements if you have more buttons
    
    	} else if (iWantTogoTo == "sceneOne") {
    		gotoAndPlay ("Scene 1", 1);
    	}
    }
    add this to your buttons:
    button1
    Code:
    on (release){
    
    _root.iWantTogoTo="sceneTwo"; 
    _root.WhereToGo();
    }
    button 2
    Code:
    on (release){
    
    _root.iWantTogoTo="sceneOne"; 
    _root.WhereToGo();
    }
    etc





  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    4
    Thanks! Good help.

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