1

我使用下面的代码来加载我的库中存在的图像:

Create_Image_With_Description();

function Create_Image_With_Description():Void {
this.createEmptyMovieClip("imageHolder", 600); 
// Put Here Images URoL 
imageHolder.loadMovie("Symbol 1"); 
// Position 
imageHolder._x = 0;
imageHolder._y = 0; 
// Size 
imageHolder._xscale = 210;
imageHolder._yscale = 215;
// Example: my_mc.createTextField(instanceName:String, depth:Number, x:Number,
y:Number,width:Number, height:Number) : Void 
this.createTextField("description1Field",1,10,203,120,20); 
// Put Here Images description 
description1Field.text = "Resident Evil: Afterlife";
}

这里符号 1 是我已转换为符号的图像。当我尝试运行它时,我收到一条错误消息“打开 URL 'file:///E|/Symbol 1' 时出错”。我也试过给 imageHolder.loadMovie("img1.jpg"); 但它仍然没有奏效。谁能帮我这个

4

1 回答 1

1

尝试替换这些行:

this.createEmptyMovieClip("imageHolder", 1000); 
// Put Here Images URL 
this.attachMovie("img1", "img1", {_x:100, _y:100});
于 2012-10-18T18:16:54.420 回答