I have two pictures on two frames. There is a textbox in which there will be some value, based on which any of the frame will be played after click on button. But whatever the value is everytime frame 3 is played. I am unable to stop at frame 2.
on(release){
myNum=parseInt(textbox1.text);
if (myNum == 2) {
gotoAndPlay(2);
}
stop();
}
I should stop here as my condition that is in frame 2
But it comes here always that is in frame 3
So, debugging. The point is to learn literally everything about data and objects you are dealing with. Somewhere along these traces you will see where it is not what you are expecting. The next step is to find out why.
A little research and you will know what makes your script to malfunction. Could possible be either of the following:
So: