Flash Actionscript XML.send( … ) doesn’t send

Once in a while you require Flash… Well yesterday was such a day :-)
I’m was working on a Flash component that tries to submit data back to the server…
I don’t have a lot of flash experience so I still don’t know all its quirks.

Well I was trying to submit an XML document the following way:

var xml:XML = new XML()
//... fill xml ...
xml.send( '/my/url' );

Well… it didn’t submit! No interaction with the server…
After some searching I discovered this was caching. Always that stupid caching…
So I solved this by adding a timestamp:

xml.send( '/my/url?ts=' + ( new Date() ).getTime() )

Again the timestamp to the rescue…

Leave a Reply

Your email address will not be published. Required fields are marked *

*


seven * = 7

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>