var mc:MovieClip = createEmptyMovieClip("mc", getNextHighestDepth());
mc._x = 100;//这里该加载图片的x位置
mc._y = 100;//这里该加载图片的y位置
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("cm01.gif", mc);
function onLoadInit(mc:MovieClip) {
mc._alpha = 0;
mc.onEnterFrame = function() {
this._alpha += 5;
if (this._alpha>=90) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
加载外部图片
最新推荐文章于 2022-04-01 16:32:08 发布