all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

Current frames



Current frames Newbie1234
1/17/2007 8:28:58 PM
flash actionscript: Little stuck on something. I just want it to say, if movieclip1 current frame is 30, and movieclip2 is current frame is on 10, play movieclip2 (frame number 15)

Re: Current frames rbr1234
1/17/2007 8:49:33 PM
im not to sure what your saying but i think this would work

if (_root.movieclip1._currentframe == 30, _root.movieclip2._currentframe ==
10) {
_root.movieclip2.gotoAndPlay(15);
}

if that doesnt work try this one

if (_root.movieclip1._currentframe = 30, _root.movieclip2._currentframe = 10) {
_root.movieclip2.gotoAndPlay(15);
}

Re: Current frames aniebel
1/17/2007 9:08:19 PM
I could be wrong but I think it should be:


//assuming all movie clips and code are placed on the main timeline
if (this.movieclip1._currentframe == 30&& this.movieclip2._currentframe == 10)
{
this.movieclip2.gotoAndPlay(15);
}
Re: Current frames Newbie1234
1/18/2007 12:33:16 PM
AddThis Social Bookmark Button