我使用下面的代码来加载我的库中存在的图像:
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"); 但它仍然没有奏效。谁能帮我这个