Hey there, it looks like this is your first time here. May I suggest subscribing to this blog and checking out these articles.

SOME RANDOM DUDE

Flash XML Caching Solution

20.08.05 @ 11:17 am

I have found quite a few people run into this problem from time to time and there’s actually quite an easy solution to take care of such an issue:


xml.load(”xmlFile.xml?”+Math.random());

Essentially, Flash will think that the file is a different URL each time it loads the file and the psuedo parameter (’?+Math.random()’) will be ignored for the file request. Clever and effective.

Liked This Post?

Well then, post the article to del.icio.us and subscribe to Some Random Dude's RSS Feed.

Show some comment love.

Total Donations for November:

$11.00

Want to help a good cause? Want to get this number higher? Learn how.

3 Responses to “Flash XML Caching Solution”

  1. Gravatar
    $0.00 in Comment Love for November

    Moving out

    I’ve made the decision that I will not be using this domain/host for much longer. This obviously means this blog will either have to be erased from existance or will need to move. While I get the feeling quite a…


  2. Gravatar
    $0.00 in Comment Love for November

    Actually, this does not solve the problem. At least not in AS2.


  3. Gravatar
    $0.00 in Comment Love for November

    WAIT! I WAS WRONG! IT DOES WORK!… It will work when you upload it and test it in a browser, but it wasn’t working for me when I just published the SWF by itself. Same thing happened when my text fields were pixelated (not smooth) and then when I view the SWF through the browser, the fonts were smooth.


Leave a Reply

Additional Doodads

Subscribe to Some Random Dude

Related Entries:

Most Commented Pages