now, my code it’s problem
when press ctrl + enter compier error show
[COLOR=red]Scene 1, Layer ‘Layer 1’, Frame 1, Line 3 1046: Type was not found or was not a compile-time constant: Loader.[/COLOR]
[COLOR=red]Scene 1, Layer ‘Layer 1’, Frame 1, Line 17 1180: Call to a possibly undefined method Loader.[/COLOR]
this fla code
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;
var xmlLoad:URLLoader = new URLLoader();
xmlLoad.load(new URLRequest("iphoneThumb_xml1.xml"));
xmlLoad.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(event:Event):void
{
xml = XML(event.target.data);
xmlList = xml.children();
for(var i:int = 0; i < xmlList.length(); i++)
{
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList*.attribute("thumb")));
imageLoader.x = 25;
loaderImage.addChild(imageLoader);
}
}
this xml code
<images>
<image source="images/Image1.jpg" thumb="images/thumb1.jpg">Description of image 1.</image>
<image source="images/Image2.jpg" thumb="images/thumb2.jpg">Description of image 2.</image>
<image source="images/Image3.jpg" thumb="images/thumb3.jpg">Description of image 3.</image>
<image source="images/Image4.jpg" thumb="images/thumb4.jpg">Description of image 4.</image>
<image source="images/Image5.jpg" thumb="images/thumb5.jpg">Description of image 5.</image>
<image source="images/Image6.jpg" thumb="images/thumb6.jpg">Description of image 6.</image>
<image source="images/Image7.jpg" thumb="images/thumb7.jpg">Description of image 7.</image>
</images>
help plz
thanks you people for help