currentFrame in Javascript
Hello guys, hope you all are well.
I got a question, I have to convert the function bellow from ActionScript into JavaScript function, the problem is I have no idea in JS a function like "currentFrame" to get the frame in what I am.
any idea how to do it?
I have checked already this page, but doesn't say anything about it.
Sorry if this question is so so noob, but this my first time working witn ActionScript
btSubmit40.addEventListener(MouseEvent.CLICK,function(e:MouseEvent):void
{
if (mcArea1.currentFrame == 2 && mcArea2.currentFrame == 2)
{
gotoAndStop("S3");
}
else if (mcArea1.currentFrame == 1 && mcArea2.currentFrame == 1)
{
mcNoselect1.visible=true;
}
else if (mcArea1.currentFrame == 2 && mcArea2.currentFrame == 1 || mcArea1.currentFrame == 1 && mcArea2.currentFrame == 2)
{
mcNoselect2.visible=true;
mcNoselect1.visible=false;
} // end else if
}
);
