ActionScript 学习: 原来Flash这么用都可以 啊

来源:互联网 发布:军工软件 行业分析 编辑:程序博客网 时间:2024/06/05 16:02
机器上装了FLASH MX2004 ,一直没有使用,今天看了下,发现完全不会用,算了,还是慢慢来吧,这里做了个小例子,动态加载图片的,很郁闷啊


var mc:MovieClip;var arr:Array;var bool:Boolean;var num3:Number;var obj:Object;var str:String;_root.createTextField("results",2,100,100,300,300);with(results){text = "色色学习ActionScript -- vb2005xu.iteye.com";text += "\ntype MovieClip :"+(typeof MovieClip(str)); // 返回 nulltext += "\ntype object :"+(typeof Object(str)); // 返回 objecttext += "\ntype Array :"+(typeof Array(num3)); // 返回 objecttext += "\ntype Boolean :"+(typeof Boolean(mc)); // 返回 booleantext += "\ntype String :"+(typeof String(mc)); // 返回 stringtext += "\ntype Number :"+(typeof Number(obj)); // 返回 numbertext += "\ntype Function :"+(typeof Function(mc)); // 返回 objecttext += "\ntype null :"+(typeof null(arr)); // 返回 undefinedtext += "\ntype undefined :"+(typeof undefined(obj)); // 返回 undefined}


原创粉丝点击