Introduction to XML in Flash
http://www.kirupa.com/web/xml/index.htm



Textbook example...



xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = mx.utils.Delegate.create ( this, xml_onLoad );
xmlData.load ( "gallery.xml" );

function xml_onLoad  ( success:Boolean )
{
        if ( success ) xml_loaded (); else trace( 'nada' );
}

function xml_loaded () 
{
        var total = xmlData.firstChild.firstChild.childNodes.length;
        trace ( "xml_loaded :: total: " + total ); // 4
}




_____________________________

Jesse Graupmann
www.jessegraupmann.com 
www.justgooddesign.com/blog/ 
_____________________________



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: Saturday, July 07, 2007 4:45 PM
To: [email protected]
Subject: Re: [Flashcoders] XML loading and parsing problem

something else missing????

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

_______________________________________________
[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

Reply via email to