PDA

View Full Version : Button actionscript to get movie clip to play?


d.arkins
10-30-2002, 11:21 AM
okay- this should be easy...

On frame one of my main timeline I have two layers. On one layer a movie clip, on the other a button. Frame 1 of the movie clip is an empty keyframe with the stop action so it doesn't play untill ordered to by actionscript.

My question: What action do I assign the button to cause the movie clip to play from frame two? Movie clip is called "bucket"

I imagine it is somewhat close to (but very different?):

on (release) {
gotoAndPlay("bucket", 2);
}


Thanks so much
Such a simple task that will make my flash life infinitey richer...

simontheak
10-30-2002, 04:17 PM
Ok - I think what you're looking for involves you giving the movie clip an instance name ... and the code should look something like this:

on (release) {
instanceName.gotoAndPlay(2);
}

Skakig
10-30-2002, 08:56 PM
Just a thought if the above code doesn't work. You might need to use:

on(release){
_root.bucket.gotoAndPlay(2);
}


but one or the other will work.