Link to home
Start Free TrialLog in
Avatar of parlays
parlays

asked on

Can't Load XML with Actionscript 1.0, only works for me with Actionscript 2.0?

Hello,

I am using an old template that runs off of Actionscript 1.0 and when I run the code that loads an XML file, it does not recognize the XML file, it is always undefined.  I tried many different XML files and they all work when compiled in Actionscript 2.0 but none work when compiled in Actionscript 1.0.  I would compile the template using Actionscript 2.0 but then the loadVariables function doesn't work (and I can't get it to load URL encoded variables from an HTML file with Actionscript 2.0).

Any help with finding a way to get it to load the XML file is much appreciated using Actionscript 1.0.  No idea what to do.  Here is the code used, it's pretty standard XML loading code:

var varXML:XML = new XML();
varXML.ignoreWhite=true;

var XMLresult:XML = new XML();

varXML.onLoad=function(success) {
      //blah blah blah
};
varXML.load('tester1.xml');
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of parlays
parlays

ASKER

thank you sire!!