all groups > flash (macromedia) > february 2006 >
You're in the

flash (macromedia)

group:

play until frame a


play until frame a Peter Vermeulen
2/28/2006 10:26:34 PM
flash (macromedia):
Hi there,

I have a movieclip on stage that I want to play until frame "a" (wich will
be an external variable)

How would I do that;

_root.myclip.play;


but how to asign a stop at variable frame a ?


Peter




Re: play until frame a Ryaninthewind
2/28/2006 11:57:51 PM
you might need to use " _currentframe "

Just put this code on the movieclip you're talking about..
Also, I'm assuming that by "external variable", you're talking about one
that's held somewhere in your flash animation.

Code:

if(this._currentframe == a){
this.stop();
}

Hope I was of some help...!
-Ryan
Re: play until frame a Peter Vermeulen
3/1/2006 9:04:38 PM
Yes,

Varaibles are comming from an xml source so are held in swf.

Not that happy with code inside the clip, but its a solution that will
work..

thx.
- Peter


[quoted text, click to view]

AddThis Social Bookmark Button