hi,
i have the following xml lines
<?xml version="1.0"?>
<gal>
<catgory>
<pic link="1.jpg" code="a1" />
<pic link="2.jpg" code="a2"/>
<pic link="3.jpg" code="a3"/>
<pic link="4.jpg" code="a4"/>
</catgory>
</gal>
and i fla i got
var mainNode:XMLNode = new XMLNode();
var gallery:XML = new XML();
gallery.onLoad = function(success) {
if (success) {
trace("loaded")
fun()
}
};
fun = function () {
total = gallery.childNodes[0].childNodes[0].attributes.link
trace(total)
}
gallery.load("gallery.xml");
the problem is that the trace(total) line gets me undefined... is there
something i am missing???
Best Regards..
--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net
+2010 - 2346633 - +2012 - 2644441
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com