您的位置:首页 > 其它

as3访问对象属性和方法的经典用法

2007-12-21 13:46 309 查看
非常实用

for example:

var button:Button = new Button();

this.addChild(button);

//重点在这里

button["label"] = "test";

button["Move"](100,100);

自己写个demo去体会下吧
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐