What isn't working?
You're trying to trace the xmlData object immediately after calling
load(). This won't work as load() isn't a blocking operation. The
XML won't be available to your code until the onLoad event has been
raised (similar to when you use MovieClipLoader).
If your "loaded" trace isn't displaying then your movie might not be
able to see the XML file for some reason.
-Andy
On 7/30/07, Omar Fouad <[EMAIL PROTECTED]> wrote:
> class LoadXML {
>
> function LoadXML() {
> var xmlData:XML = new XML();
>
> xmlData.ignoreWhite= true;
> xmlData.onLoad = function (success) {
> if(success) {
> trace("loaded");
> }
> }
> xmlData.load("data.xml");
> trace(xmlData);
> }
> }
> this is not working
>
> --
> 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
>
_______________________________________________
[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