Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

having problems with flash buttons

Status
Not open for further replies.

beatreal

Technical User
Aug 7, 2007
5
CA
Hey Guys,

I'm kind of a flash noob.. and this will prolly take somebody two seconds to figure out.. but I have been struggling with getting buttons to work in flash for quite some time.. First I could get a button to switch to a new scene.. but from what I've found on other forum posts is that I shouldn't be breaking my flash up into scene... anyways what I want it to do when I hit the button is just continue to play the movie.. its almost like a quiz that goes through movie-like... you will see when you take a look at the file. The button isn't working and it's just stopping at the first 'slide' if you will. The project can be downloaded at
I am using Flash 8 Pro
Thanks for your help/time guys!
 
It's [tt]gotoAndPlay("half", 1);[/tt] to go to the frame 1 of Scene "half". You can also do [tt]gotoAndPlay(112);[/tt] - because your Scene 1 has 111 frames, the first frame of the next scene is frame 112. You can also do [tt]nextScene();[/tt] - this will take you to the first frame of next Scene.

Kenneth Kawamoto
 
Better to never target scene names, or even frame numbers, but always labeled frames...

Thus label the targeted frame (in your case, frame 1 of the "half" scene), with an unique frame label such as my_target1, add _root or _level0 to your path, and only target the labeled frame...

on(release){
_level0.gotoAndPlay("my_target1");
}

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
here.. download this flash file and check out what ive done.. the first button seems to work.. the other ones don't.. theres like four slides that just kinda skip throw once somebody clicks on the answers to the buttons (the answers to the questions don't matter.. any combination of answers should get to the end part.. where an animation begins to play)
 
ohhh.... was that what I was doing wrong.. putting the action script in the main timeline instead of each individual symbols timeline??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top