all groups > flash actionscript > august 2004 >
You're in the

flash actionscript

group:

Accessing xmlConnector from ActionScript



Accessing xmlConnector from ActionScript rumpelstilzchenlang
8/15/2004 10:00:17 PM
flash actionscript: I have a problem with accessing the results of an xmlConnector (only Flash
Professional) from the ActionScript code. I want to set an var j equal to the
path areas/item[n]/@name within the connected xml file. My question is how to
write this in code...

this.xmlConnector.results.areas.item[n].name? doesn't work, even with @
xmlConnector:results.areas.item[n].name? compiling error (because of the ":" )

Please help me, I'm stuck! Thanks.
Re: Accessing xmlConnector from ActionScript bobpf
8/31/2004 6:00:57 PM
Here is what I do:

_connector.direction = "receive";
_connector.URL = _contenturl;
_connector.ignoreWhite = true;
_connector.addEventListener("result", this);
_connector.addEventListener("status", this);
_connector.trigger();

public function result(event:Object){
var _xml:XML = new XML(event.target.results);
.
.
.
}
Re: Accessing xmlConnector from ActionScript rumpelstilzchenlang
9/8/2004 2:09:29 PM
Thx for your help, but it seems that your code has some errors. You tested it
within Flash MX 2004?
The compiler says: attribute used outside of function, I guess the public is
not right here, needs to be placed somewhere else.

How can I access the data after executing your code? Sorry, I don't see
through it, I'm not that highly-skilled within ActionScript and it's functions
AddThis Social Bookmark Button