CodeCanyon

Cache problem with flash

410 posts
  • Argentina
  • Beta Tester
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 10 000 and 50 000 dollars
Random says

Hi, I have a problem loading a picture from flash because the cache doesnt let me to update it, I know a guy started a theard like this but his problem was with a xml file and he solve it with something like this:

my_xml.load(“myxml.xml?”+random(1000))

Can I do the same with a picture? like:

myHolder.loadMovie(“myimage.jpg?”+random(1000))

145 posts
  • Australia
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
bjornredemption says

yes i think it may only work on a webserver though and not locally

3867 posts
  • Author had a Free File of the Month
  • Beta Tester
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 6-7 years
+4 more
flashjunkie says

yes, i have dealt with this problem a lot this week due to building a few CMS systems, in order for the updates to all be seemless i had to use this method for all sorts of dynamically loaded files, including mp3’s flv’s html files etc etc.

i think djankey was the guy that came up with it, nice one dude :D

by
by
by
by
by