|

- 帖子
- 2
- 积分
- 1
- 技术分
- 0
- 在线时间
- 2 小时
- 注册时间
- 2008-9-19
|
1#
发表于 2008-9-24 21:25
| 只看该作者
关于按钮控制元件的问题。
各位好。
我想问一个关于FLASH的问题啊。
有一个名为 diary_Symbol 1 的影片剪辑,他第一帧的代码如下。
loadVariables("text/diary2.txt", this);
if (tip>2) {
myTextFormat = new TextFormat();
myTextFormat.font = "宋体";
myTextFormat.size = 10;
myTextFormat.leading = 3;
createTextField("test_txt", 10, 0, 0, 210, 10);
test_txt.multiline = true;
test_txt.wordWrap = true;
test_txt.autoSize = true;
test_txt.html = true;
test_txt.htmlText = text;
test_txt.setTextFormat(myTextFormat);
test_txt.type = "Static";
_parent.loadok = 1;
stop();
我想做一个按钮,单击后,效果就是,能改变 "text/diary2.txt" 地址,请问应该在按钮上加什么代码啊?
主要是想,单击按钮后,文本框里的文字出现变化。 |
|