查看: 1438|回复: 7
|
[求助]如何ACCESS 另外一个SCENE 的TEXTBOX VALUE
[复制链接]
|
|
我设计了二个SCENE的FORM,但是怎样才能把另一个SCENE 的TEXTBOX VALUE LOAD 进我现在的SCENE? |
|
|
|
|
|
|
|
发表于 19-8-2005 05:14 PM
|
显示全部楼层
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; |
|
|
|
|
|
|
|
发表于 20-8-2005 11:35 PM
|
显示全部楼层
使用_global定义全局变量,这样在另外一个场景也就能够得到了。。。
使用方法请参考Actionscript Dictionary |
|
|
|
|
|
|
|
发表于 26-8-2005 02:39 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 31-8-2005 02:18 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 2-9-2005 04:06 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 2-9-2005 06:08 PM
|
显示全部楼层
邪灵,你是不是用macromedia flash mx 2004
我的是macromedia flash mx 而已,
开不到 |
|
|
|
|
|
|
|
发表于 2-9-2005 06:15 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|