diff --git a/src/infoWindow.mxml b/src/infoWindow.mxml index 80ad0de..d056b08 100644 --- a/src/infoWindow.mxml +++ b/src/infoWindow.mxml @@ -15,16 +15,14 @@ tvMaster.gateway.call("tuveAdmin.getFullInfo",new Responder(getInfoRes,tvMaster.onFault),vid); } - public function getInfoRes(result:Array):void { - var tmpCollection:ArrayCollection; + public function getInfoRes(result:Object):void { if (result != null) { - tmpCollection = new ArrayCollection(result); - npThumb.source = "http://www.ubixonline.com/images/" + tmpCollection[0].thumb; - npArtist.text = tmpCollection[0].artist; - npTitle.text = tmpCollection[0].title; - npDescription.htmlText = tmpCollection[0].description; - if (tmpCollection[0].bio != null) - npBio.htmlText = tmpCollection[0].bio; + npThumb.source = result.thumb; + npArtist.text = result.artist; + npTitle.text = result.title; + npDescription.htmlText = result.description; + if (result.bio != null) + npBio.htmlText = result.bio; } } ]]>