【发布时间】:2014-12-12 16:26:14
【问题描述】:
我知道你可以使用 .width 或 .高度属性,但这似乎很草率。我需要改变这个:
function packetF(): void {
Time.removeEventListener(TimerEvent.TIMER, checkF);
Image = Data.image[imageNum].imgURL;
Childnumber = Data.*.length();
imgW = Data.image[imageNum].imgW;
imgH = Data.image[imageNum].imhH;
imageLoad = new Loader;
imageLoad.load(new URLRequest(Image));
imagebox.addChild(imageLoad);
imageLoad.x=(imagebox.width - Number(imgW))/2;
imageLoad.y=(imagebox.height - Number(imgH))/2;
}
我还没有具体的高度/宽度。我只需要知道怎么做
【问题讨论】:
标签: xml actionscript-3 flash