[Xerte] Xerte3: Loading external data
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Jun 15 13:29:34 BST 2010
I think you need to call iconID.load()?
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
Huppertz
Sent: 15 June 2010 13:15
To: Xerte discussion list
Subject: [Xerte] Xerte3: Loading external data
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
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
More information about the Xerte
mailing list