PDA

View Full Version : button script to start playback from of a frame in another movieclip


cisco12
08-01-2005, 06:38 AM
Scene1 Main Timeline
Contains: page3 (movie clip)
Contains: Mov-eyeFXgamelist (movie clip)
Contains: Btn-eyeFXgamelist (button)

What scipting can i use to execute a command to begin playback of frame 2
in movie clip page3 from the button?

on (release)

RoGuE_StreaK
08-01-2005, 07:18 AM
Try:
Btn-eyeFXgamelist.onRelease = function()
{page3.gotoAndPlay(2);}
(goes in your main timeline, not attached to the button itself)

Quick tip, usually best to name your stuff a bit better, eg
page3_mc, eyeFXgamelist_mc, eyeFXgamelist_btn, that way Flash will recognise what type of object they are supposed to be, and give more relevant actionscript tips. Plus it's easier for you to figure out what they are...