scene 1.
1. create a new layer, label it as "action".
2. in the first frame of "action" layer, create some variables. example:
username = "";
userage = "";
3. in other layers, create some input text fields. and label them, example, create 2 input text fields, 1st one label it as "txtinput_username", 2nd is "txtinput_userage".
4. i believe that sure there is a button to click that let you go to the 2nd scene right? the code for the button:
on(release){
username = txtinput_username;
userage = txtinput_userage;
nextScene();
}
scene2.
1. create a new layer, label it as "action"
2. create 2 dynamic text fields in other layer, label them, 1st text field as "txtout_username", 2nd text field will be "txtout_userage".
3. at the first frame of "action" layer, put in the following code:
stop();
txtout_username.text = _root.username;
txtout_userage.text = _root.userage; |