my uiloader
partial code
Code:
sourceValue=theXML.key[key].swfFile;
trace("///// ui key "+sourceValue+" //////////////////");
uiImage.source=sourceValue;
If my url is correct and it is in sourcValue which it is. Shouldn't uiImage.source=sourcValue display the file?
likewise
Code:
var imageImage:String=theXML.key[tImage].swfFile;
trace("////////////////// "+imageImage+" //////////////////");
arrayImage.push({source:imageImage});
}
dp=new DataProvider(arrayImage);
tlImage.dataProvider=dp;
all the correct URL are in the arrayImage[] and the only thing I have left is frame one(action) in the .fla which is:
the tilelist
partial code
Code:
var cbMajorComponent:CBMajorComponent=new CBMajorComponent();
cbMajorComponent.cbMajor.setSize(200, 22);
cbMajorComponent.cbMajor.prompt = "Select a Major Key";
cbMajorComponent.cbMajor.editable=false;
cbMajorComponent.cbMajor.rowCount=15;
cbMajorComponent.cbMajor.width=110;
cbMajorComponent.cbMajor.move(0,0);
cbMajorComponent.cbMajor.x=10;
cbMajorComponent.cbMajor.y=20;
this.addChild(cbMajorComponent.cbMajor);
var cbMinorComponent:CBMinorComponent=new CBMinorComponent();
cbMinorComponent.cbMinor.setSize(200, 22);
cbMinorComponent.cbMinor.prompt = "Select a Minor Key";
cbMinorComponent.cbMinor.editable=false;
cbMinorComponent.cbMinor.rowCount=15;
cbMinorComponent.cbMinor.width=110;
cbMinorComponent.cbMinor.move(0,0);
cbMinorComponent.cbMinor.x=10;
cbMinorComponent.cbMinor.y=50;
this.addChild(cbMinorComponent.cbMinor);
var uiImageComponent:UIImageComponent=new UIImageComponent();
uiImageComponent.uiImage.setSize(50,50);
uiImageComponent.uiImage.x=135;
uiImageComponent.uiImage.y=13;
//uiImageComponent.uiImage.width=110;
//uiImageComponent.uiImage.height=50;
this.addChild(uiImageComponent.uiImage);
var tlImageComponent:TLImageComponent=new TLImageComponent();
tlImageComponent.tlImage.move(135,185);
tlImageComponent.tlImage.width=375;
tlImageComponent.tlImage.height=120;
tlImageComponent.tlImage.columnWidth=160;
tlImageComponent.tlImage.rowHeight=185;
this.addChild(tlImageComponent.tlImage);