[Xerte] Xerte3: Loading external data
Peter Huppertz
peter.huppertz at baselgovernance.org
Tue Jun 15 13:15:20 BST 2010
There are a number of Data icons in Xerte3. As far as I can see HTTPService is the only icon which is working at the moment. Can I use this icon to load a XML file which is located in the same directory as my Xerte piece?
I tried the following:
HTTPService, url = languages.xml
-- EventHandler "result", debug(event.target.data)
but nothing comes up.
Alternatively I tried to load it using a script icon:
import flash.net.URLLoader;
import flash.net.URLRequest;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest(“languages.xml”));
function loadXML(e:Event):void {
xml = new XML(e.target.data);
debug(xml);
}
This gives me: Parse Error: msg.no.paren.arg [line:5/k04]
Any ideas?
Peter
==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19
More information about the Xerte
mailing list