all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

stop and play butons


stop and play butons markersniffer210
12/27/2004 10:06:07 PM
flash actionscript:
I am trying to make a simple flash movie with a stop and play button, but when
I make the buttons this error comes up:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear
within on handler
myMovieClip.play();

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear
within on handler
parentClip.childClip.gotoAndPlay(3);

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear
within on handler
instanceName.stop()

Total ActionScript Errors: 3 Reported Errors: 3

I am just dragging the stop and play from the actionscript llibrary. Your help
would e greatly appritiated
Re: stop and play butons juankpro
12/27/2004 10:11:58 PM
instead of myMovieClip.play();
use
on(release){
myMovieClip.play();
}

AddThis Social Bookmark Button