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

flash actionscript

group:

how to stop movie clip element in timeline?



how to stop movie clip element in timeline? rollingmatt
9/20/2004 10:56:46 PM
flash actionscript: please forgive my ignorance.. I am new to flash.

I have a movie clip instance that is in a layer of a flash document (called
"shot7")
I have a stop button that stops playback of my flash file.
However, the stop button only stops the current timeline and not the movie
clip instance ("shot7")

My stop button has the following action script:

on (release) {
stop();
}

I have tried adding
shot7.stop() to the stop buttons actionscript but that doesn't work.

What am I missing here??

TIA For your help

matt rickman
Re: how to stop movie clip element in timeline? BillG-Chicago
9/20/2004 11:14:19 PM
Re: how to stop movie clip element in timeline? rollingmatt
9/21/2004 4:36:34 AM
well that is exactly (unless I am misreading your reply) what I did..

I named the instance shot7

and added to the actionscript
shot7.stop();

Re: how to stop movie clip element in timeline? rollingmatt
9/21/2004 3:19:34 PM
Alright... I figured it out.

I had set keyframes in my shot7 movie clip.. before I set the instance name.
And so I had to add the instance name to each keyframe. Then it worked fine....

thanks for the help

matt rickman
AddThis Social Bookmark Button