hola,
i made a code from flash that will display images
from movie clip and now im using XML to handle images.
but then the problem is my image wil not display,
Actually i want to display my image each movie clip with different animation.
And now heres my XML code.
==============================================
<?xml version="1.0" encoding=utf-8" standalone="yes"?>
<pic id="1">
<image>raw/sample. jpg</image>
</pic>
<pic id="2">
<image>raw/sample2.jpg</image>
</pic>
==============================================
and now heres my flash code that will suppose to work out w/ XML
i just dont want to use arrays for this, i just want to call them through user id from XML tags.
if possible ^_^?
my_xml=new XML();
my_xml.ignoreWhite=true;
my_xml.onLoad=loadXML;;
my_xml.load("image.xml")
function loadXML(loaded){
if(!loaded)
{
trace("error and wont work");
return;
}
this.img1.loadMovie(pic [id=1]); <-- DID I MISS SOMETHING PART IN HERE?
scale = 40;
img1._xscale = scale;
img1._yscale = scale;
}
Pls Help