anyone want to tell me why this MC allways jumps to frame 76...
here is my code
function goQuestion(e:Event){
if(e.currentTarget.frame <=(60)){
e.currentTarget.gotoAndPlay(60)
}else{
e.currentTarget.gotoAndPlay(76);
}
}
Printable View
anyone want to tell me why this MC allways jumps to frame 76...
here is my code
function goQuestion(e:Event){
if(e.currentTarget.frame <=(60)){
e.currentTarget.gotoAndPlay(60)
}else{
e.currentTarget.gotoAndPlay(76);
}
}
It probably goes to frame 60, then 61, which will then make it jump to 76. Did you mean gotoAndStop(60)?
I figured it out i was using .frame insted of .currentframe...
function goQuestion(e:Event){
if(e.currentTarget.currentFrame <(75)){
e.currentTarget.gotoAndPlay(60)
}else{
e.currentTarget.gotoAndPlay(76);
e.currentTarget.removeEventListener("click", goQuestion);
}
}