import flash.display.BitmapData;
var mcl:MovieClipLoader = new MovieClipLoader();
var obj:Object = new Object();
this.createEmptyMovieClip('mc_0',0);
mc_0.createEmptyMovieClip("mc_1", 0);
mc_0._x = mc_0._y=0;
this.createEmptyMovieClip("mc_2", 1);
mc_2._x = 0;
mc_2._y = 150;
var i=2;
onMouseDown = function() {
i++;
mcl.loadClip("file:///D:/Documents/新建文件夹/"+i+".jpg", mc_0.mc_1);
if (i>=8) {
i = 2;
}
};
Mouse.addListener(obj);
obj.onLoadInit = function(mc:MovieClip) {
mc._width = mc._height=150;
var bit:BitmapData = new BitmapData(150, 150, true, 0);
mc_2.attachBitmap(bit,0);
bit.draw(mc_0);
mc_2._width = mc_2._height=150;
};
mcl.addListener(obj);
最初以为加载进来的图片已进行啦设置,直接复制,应该是设置后的,却没想得到的竟是原始数据,
现在将加载进来的图片的影片装进父影片,问题就解决啦
回复Comments
作者:
{commentrecontent}