Hello guys;
Long time no posts/replys in kirupa, i was in holiday, now i’m back!
Now i come with a problem, i want to check the currentframe of movieclip that it play’s after i press a btn!
my script look something like this:
sub_meniu.sub2.onPress = function () {
this._parent._parent._parent.Mcs.play ();
checkCurrentFrame ();
//trace(this._parent._parent._parent.targetMc)
//trace (this._parent._parent._parent.Mcs);
};
function checkCurrentFrame () {
if (this.Mcs._currentframe >= 90)
{
//this._parent._parent._parent.Mcs.removeMovieClip ();
trace("Frame 90");
}
else
{
checkCurrentFrame ();
}
}
I have tried the simple way (new file) and added this code:
function checking ():Void {
if (this._currentframe == 35)
{
stop ();
trace ("Suntem in frame 3");
}
else
{
checking ();
}
}
checking ();
in the first keyframe and i get this error!
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
Any ideea, help, tip how i can resolve this problem!
Thank you in advanced, btibia