2 Attachment(s)
copy code from Movie Explorer
Quote:
Originally Posted by
drosster
_root.gotoAndPlay(3)
Looks like ActionScript 2 or 1. In what they referred to as ActionScript 1, code was placed on the button (object on Stage). ActionScript 2 used anonymous functions in timeline. The symbol instances need to be named so you can "talk" to them with ActionScript, and you need to specify the event --
Code:
e.g., for AS 1
on(press) { gotoAndPlay(3); }
or for AS 2
this.blue_mc.onPress = function ()
{ gotoAndStop(2); }
The keyword this would reference the current timeline so you could use dot syntax to address nested movie clips -- this.blue_mc.nested_mc.onPress =
Referencing the main timeline (_root or root) from within nested movie clips can be tricky. A simple solution would be to have buttons on Stage. What version Flash are you using?
It's hard to visualize what you are doing. Open Window>Movie Explorer and copy the code to clipboard and then paste that into a post so we might see what you have.