flash按钮上显示数据资料

hanyulou2003 2010-11-02 04:58:19
在按钮点击的时候,让按钮上面显示出数据总条数;
我在按钮上做了一个层,放置一个text的文本的影片剪辑。
按钮:button;影片剪辑:text2;动态文本的变量:eee;

按钮的影片剪辑

on (release) {
System.useCodepage = true;

mainnews = new LoadVars();//注1 
mainnews.load("http://localhost/B/Flash_total.asp");//注2
mainnews.onLoad = function(success) {//注3
if (success) {
var fornum=mainnews.fornum;
//for(var i=0; i<3;i++){
text1.eee = mainnews.total //注4
button.text2.eee = mainnews.total
//}
}else {
trace("fail");//注5
}
}
}


asp:

response.write("&total="&total)

把变量的赋值给一个普通的影片剪辑text1,没问题,就是按钮上的不显示;请高手指教。
注明:flash深度学习中
...全文
86 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
程序园苑 2010-11-11
  • 打赏
  • 举报
回复
用文本,不是用button,对文本实例化就可以
passself 2010-11-03
  • 打赏
  • 举报
回复
楼主按钮要用label属性
nick848 2010-11-03
  • 打赏
  • 举报
回复
可能我搞错了
button和text2关系是什么?
button包含text2?
动态文本的实例名称是什么?
nick848 2010-11-03
  • 打赏
  • 举报
回复
button.text2.eee.text = mainnews.total

1,451

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 图象工具使用
社区管理员
  • 图象工具使用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧