This content has been marked as final. Show 4 replies
there is no movieclip method play() that accepts a parameter (like a frame label or a frame number). use _root.Dammit.gotoAndPlay("frame label 2") or _root.Dammit.gotoAndPlay(2);
yes if you're trying to tell a movieclip to do something whether that's to go to a frame or play or whatever, then it needs to exist in the same frame. it can be in a different layer, that's fine, but it the actionscript or button talking to the movieclip is on frame 15 then the movieclip must exist on frame 15.
targeting issues are common so its quite likely that you'll need to check that you're targeting the movieclip correctly also.
the code you posted has two additional issues. the play method doesn't accept parameters. to go to specific frames you'll need to use the gotoAndPlay method. And if the numbers you've used as parameters are intended as frame numbers, you'll want to remove the quotation marks. Only frame labels use quotation marks.
Craig and Kglad,
Thanks for clearing up my syntax. I figured it out. In my targeting issue, I was targeting the movie clip name and not an instance name (which i hadn't given). Probably a good idea to get in the habit of naming all instances.
Thanks again guys *I'm assuming,
you're welcome. (and correct).