Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mc.if frame loaded

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
hi,

i would like to know how to tell flash 5.0, to do something if a certain frame of a movie clip has been reached.

the mc names were creted with enumeration so the names are chari where i ranges from 1 to 32.

what i want is: if char32 has reached frame 20, then do abc.

i tried a lot of different codes but no luck.
:-{
please help.thanks.
 
Hi,

It didn't work...something is wrong. tell target didn't work either.
 
Is this char32 mc on the root level, in another mc or on another level? Maybe try what Wang suggested, but at least including _root or _level0 to the path, any other movie clip's instance name or a level, in your if statement...

if(_level0.char32._currentframe==20){
//do stuff;
}

Of course you could use a trace action before your if staement, just to see if your statement is ever true!

trace(_level0.char32._currentframe);
if(_level0.char32._currentframe==20){
//do stuff;
} Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top