Hey there game makers!
Here's my problem. I want have have an eval that requires an image width but it keeps returning as 0. The code is below.
Here's my problem. I want have have an eval that requires an image width but it keeps returning as 0. The code is below.
JavaScript:
SceneMine.protoype.create = function() {
this._field = new Sprite();
this.addChild(this._field);
this.createListIMG();
}
SceneMine.prototype.createListIMG = function(sprite) {
this._listIMG = [];
this._listIMG[0] = new Sprite (ImageManager.loadFTM(PicA));
this._listIMG[0].x = (Graphics.boxWidth / 2) - this._listIMG[0].width;
this._listIMG[0].y = Graphics.boxHeight - this._listIMG[0].height;
this._field.addChild(this._listIMG[0]);
this._listIMG[1] = new Sprite (ImageManager.loadFTM(PicB));
this._listIMG[1].x = this._listIMG[0].x + this._listIMG[1].width;
this._listIMG[1].y = this._listIMG[0].y - this._listIMG[1].height;
this._field.addChild(this._listIMG[1]);
}