I'm getting all data from XML file to Flash. All data in XML file will be displayed in the Flash.
My code in flash:
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("salesAchievementXML.xml"));
function LoadXML(e:Event):void
{
xmlData = new XML(e.target.data);
LoadSales(xmlData);
}
function LoadSales(imageinput:XML):void
{
var _salesInfo:XMLList = imageinput.SalesAchievement;
var _salesDetails:XMLList = _salesInfo;
var _salesImage:XMLList = _salesDetails.fldUserImage;
ncounter=0;
for each (var _salesImageElement:XML in _salesImage)
{
_ArrSalesImage[ncounter] = _salesImageElement;
ncounter++;
}
}
Sample XML: [ I just screenshot it because the binary is so long].  
HEre's the template I'm gonna use:  
so my problem is: The is a binary type from webservice. Then I'm planning to display the in the box of image. But the problem is, is there a way to display an binary image to flash or it should be converted? If converted, please help me how to convert it..
Thanks!
No comments:
Post a Comment