[Xerte] XML loading

Dave Burnett d_b_burnett at hotmail.com
Mon Jul 7 13:20:55 BST 2008



Thanks Julian, got it working, but this is where I start to get messed up with A/S.

I had to change your pseudo
new XML('');
to
new XML('');
But it also seems I can leave it as new XML() and it works as well.


This works and triggers the sendAndLoad event in myPage, as expected:
myXML = new XML();
myPage.sendAndLoad(myXML,"http://www.myserver.com/access/test/flash_feed.xml");

But so does this: (though it does not trigger an event and I have to check the result further down the flow)

dave_xml = new XML();
fred_xml = new XML();
fred_xml.sendAndLoad("http://www.myserver.com/access/test/flash_feed.xml",dave_xml);

Notice the parameters in the sendandload are inverted.
The return value in the first case goes into a (default?) object called serverXML
The return value in the second case goes into daveXML, the XML object I declared.

So Flash seems to be pretty loose with the function structure?

Dave
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008


More information about the Xerte mailing list