AS3.0学习手记(2)loader

0

本文作者:LevinChiu  发布于:2007-4-24  分类:flash AS3.0  点击:


在AS2.0之前,我们是使用flash 内置函数loadMoive()

如:
mc.loadMovie("mc.swf")
loadMovieNum("mc.swf",0)

而在AS3.0中,.我们则使用Loader()
如:
var url:String = "image.jpg";
import flash.display.Loader;
import flash.net.URLRequest;
var ldr:Loader = new Loader();
addChild(ldr);
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
本文标签: 
本文Url: http://levinchiu.com/blog/post/13.html (出自: LevinChiu Personal Official Blog)
我要引用: 点击这里获取该日志的TrackBack引用地址

相关文章:

0 Comments

Write a comment ?