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!

Buttons for gotoslide

Status
Not open for further replies.

remeng

Technical User
Jul 27, 2006
520
US
I am having problems in Flash 8 with directing script when a button is pressed. the goal is for the button to jump from one slide to another off of a main page.

background
-main
--tic tac toe
--bird
--chest

the goal is to be able to go from main slide to say the bird slide. I have tried to use the gotoslide action, but I am to new with scripting to get it to work correctly. I just get errors. If someone can explain the basics of scripting and what I need to do I will be grateful. Thank you in advance.
 
I have never used Slide Class, but if you read the doc it says:

[tt]Slide.gotoSlide()[/tt]

This means you have to do something like:

[tt]_parent.gotoSlide(_parent.currentSlide.nextSlide);[/tt]

[tt]_parent.currentSlide.gotoNextSlide();[/tt]

(These are also from the doc.)

Kenneth Kawamoto
 
I tried that and it didn't work, what I ended up doing was opening one of the templates and coping the script from one of the buttons. Thanks though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top