Hey guys,
I am working on as3 and i am stuck a little
I am loading a XML and it works fine … then i am creating dynamic buttons … and i added a event listener on these buttons that call displayPort()
now, var Thumb is mainXML…item*…image.text(); … when i trace Thumb i get files/image1.jpg … …so when i put files/image1.jpd into the URLRequest it works… but how do i call that property from the function below to get it from above… I know they changed that in AS3… right… cause in AS2 i used a different method.
function displayPort(e:MouseEvent){
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(Thumb);
ldr.load(urlReq);
addChild(ldr);
}