嘘つきました…

if(elm.graphic!=""){
object.loadImages(elm.graphic, elm.graphickey);
}
else{
object.width = elm.width;
object.height = elm.height;
}
です…