Hi all,
I’m trying to put together a fairly simple animation. At the moment I’ve got an animation happening on the main timeline. When the playhead reaches a certain frame, a movie clip symbol gradually fades in from transparent to full opacity. On this movie clip is another animation but it’s timeline is set to stop on the first frame. On the last frame of the main timeline I’m trying to target this movie clip to get it to play. I’ve put the following code on the last frame:
this.newanimation_mc.play();
… so that it will target this movie clip and play. But when I test I get the following error:
Error Scene=Scene 1, layer=plane movie clip, frame=30:Line 1: Statement must appear within on/onClipEvent handler
this.newanimation_mc.play();
Total ActionScript Errors: 1 Reported Errors: 1
Can anyone tell me why this might be happening?
Thanks for any help offered.