Hi, over the past couple weeks i have been making a flash program. The way this program works is frame by frame the user enters values into text inputs, then clicks next to go to the next frame, and so on until the end where some calculations are made with the values previously entered. The values are stored in variables on the event of onRelease of the Continue button for each frame.
First I should tell you that i am using Action script 2.0. What i want to do, that isn't working so far, is to have it so they can go back to the previous frame and the previously entered value will still be in the text input. So far i cannot figure it out.
An Example of the code used for storing the variables is
on (release) {
numReg = numReg.text;
numCC = numCC.text;
numCheque = numCheque.text;
perDec = perDec.text;
perBounce = perBounce.text;
perInc = perInc.text;
gotoAndStop(nextFrame());
}
The numReg.text, numCC.text etc. are all the values of the text inputs(numReg, numCC and so are are just the instance names)
An example of the code that i tried to use to accomplish my goal is:
on (release) {
gotoAndStop(prevFrame());
numReg.text = numReg;
numCC.text = numCC;
numCheque.text = numCheque;
perDec.text = perDec;
perBounce.text = perBounce;
perInc.text = perInc;
}
I tried putting this code into the Back button of the next frame and after clicking the back button the values would not show up in the text inputs. They would just stay as the default value set in the Paramaters of each text input.
If anybody can help me figure out how to solve my issue it would be very much appreciated.





Bookmarks