Hello!
Here’s a weird problem I had - any suggestions would be welcome…
I spent a great deal of time at work stressing about an XML issue yesterday.
The most simple onLoad XML call just wouldn’t work!
I’m using cs3 at work but still within the confines of AS2.
Using the following as & XML yielded an output of:
<?xml version=“1.0” encoding=“UTF-8”?>
But not:
theVideo=“videos/test.flv”
Which I was expecting…
When I tried exactly the same thing here at home on my old G4 warhorse, using AS2 on Flash 8 Pro, it works fine!
Is this an issue with my work server?
I saved everything on the desktop of my G5 imac there but still no joy.
I’ve been reading about crossdomain.xml but am not sure if this is the problem.
AS
var tXML:XML = new XML();
tXML.ignoreWhite = true;
tXML.load("tXML.xml")
tXML.onLoad = function()
{
trace(this.firstChild.attributes["theVideo"])
}
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos
theVideo="videos/test.flv"/>