佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1436|回复: 7

[求助]如何ACCESS 另外一个SCENE 的TEXTBOX VALUE

[复制链接]
PenangLaksa 该用户已被删除
发表于 18-8-2005 07:13 PM | 显示全部楼层 |阅读模式
我设计了二个SCENE的FORM,但是怎样才能把另一个SCENE 的TEXTBOX VALUE LOAD 进我现在的SCENE?
回复

使用道具 举报


ADVERTISEMENT

发表于 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 | 显示全部楼层
请问可以放个sample吗?我还是做不到
回复

使用道具 举报

发表于 31-8-2005 02:18 AM | 显示全部楼层
贴出你的原文件比较方便
回复

使用道具 举报

发表于 2-9-2005 04:06 PM | 显示全部楼层
http://www.geocities.com/flash_village/sample.fla

[ 本帖最后由 邪灵 于 2-9-2005 05:04 PM 编辑 ]
回复

使用道具 举报

Follow Us
发表于 2-9-2005 06:08 PM | 显示全部楼层
邪灵,你是不是用macromedia flash mx 2004
我的是macromedia flash mx 而已,
开不到
回复

使用道具 举报

发表于 2-9-2005 06:15 PM | 显示全部楼层
回复

使用道具 举报


ADVERTISEMENT

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 15-7-2025 01:40 PM , Processed in 0.138720 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表