PDA

View Full Version : Xml


mistermikeb
10-22-2003, 11:38 AM
Hiya,

I have a situation where I want to load ALOT of xml into flash dynamically (ideally it would be at least one largish chunk of XML every 12 frames or so) - I don't think the XMLSocket is going to be up to this - does anyone know if flash remoting can help with this? - would it enable me to do the XML unpack on the server and load in objects for example?

Thanks alot, I'm still a bit unclear about why remoting is so useful....

mike

freddycodes
10-22-2003, 01:02 PM
Well as you may or may not know, flash and XML can get very messy if the XML is too large. How many nodes are we talking here? Can you just use the XML object(not XMLSocket)? Or is it large enough to make the XML parser choke?

Remoting is used for exposing classes on the server to your flash movie via remoting calls.

What is the XML? What is creating the XML? Would it be possible to not use XML at all, if the app creating the XML is under your control , you could probably use remoting retrieve the same data in a different format a whole lot faster.

Could you expand on what is going on behind the scenes?

mistermikeb
10-22-2003, 01:34 PM
hiya, thanks for replying..........

basically, im trying to read xml based on a video stream (i know!) - ie, its xml describing a frame, and the server is broadcasting an xml stream at 25fps - 10k of xml for every frame -

now in flash, i dont need to read every frame, but 1 a second would be nice - the xml could be big, say at least 10k or so - this pretty soon brings the parser to its knees and you get the "script is causing the movie to run slowly" etc

as you say,the alternative is to use remoting to access the classes on the server itself - could you realistcially do this every second do you think?

the socket would be C++ prob (not my bit), but yes, could be under my control format-wise.............

do you think that it would be viable to use remoting and pick up the data every second, and get better performance

thanks again for your help, very much appreciated

mike

freddycodes
10-22-2003, 01:57 PM
You are going to definitely get a performance boost using remoting over XML Object. XMLSocket might be nice, because the server could push the xml to the client every second. Of course your server would need to be capable of pushing data out at a timed interval.

Using remoting your flash movie is responsible for asking for the data hwoever often it wishes.

mistermikeb
10-23-2003, 05:41 AM
thanks freddycodes, that really useful

much appreciated,

mike