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

机器上装了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)); // 返回 null
	text += "\ntype object :"+(typeof Object(str)); // 返回 object
	text += "\ntype Array :"+(typeof Array(num3)); // 返回 object
	text += "\ntype Boolean :"+(typeof Boolean(mc)); // 返回 boolean
	text += "\ntype String :"+(typeof String(mc)); // 返回 string
	text += "\ntype Number :"+(typeof Number(obj)); // 返回 number
	text += "\ntype Function :"+(typeof Function(mc)); // 返回 object
	text += "\ntype null :"+(typeof null(arr)); // 返回 undefined
	text += "\ntype undefined :"+(typeof undefined(obj)); // 返回 undefined
}


  • 大小: 115.9 KB
  • 大小: 45.3 KB
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值