Yet another Flash question
- Started
- Last post
- 5 Responses
- SPYK
Please don't laugh me off this board 'cos this is probably really simple, but I'm new to flash being predominately a print designer.
The problem I have is that I have a button inside a movie clip that I want to send the main timeline to a certain frame. What script would I add to do this?
- blaw0
this should help:
http://www.actionscript.org/tuto…
- SPYK0
I'll have a read through that, thanks.
- fugged0
just target the timeline and use gotoAndPlay
if your button MC is inside of another MC that sits on the main timeline then to tell the _root timeline to go to a specific frame:
this._parent._parent.gotoAndPlay...
you can do _root.gotoAndPlay, but I would avoid references to the root in an abosulte path.
- UndoUndo0
mybutton.onPress = function(){
_root.gotoAndPlay(2)
};
- SPYK0
got it working now, thanks for you help