tags:

views:

29

answers:

1

hi.i would like to load a flash file in order to use it's functions and classes. i would like that this file will be never cached. how can i do that ?

+1  A: 

Loading code can be found in this answer. To avoid caching of the swf, you can append a random string to the SWF url like:

ldr.load(new URLRequest("Movie.SWF?rand=" + Math.random()));

//or

ldr.load(new URLRequest("Movie.SWF?rand=" + flash.utils.getTimer()));
Amarghosh