i would like to load a flash file in order to u开发者_JAVA百科se it's functions and classes. i would like that this file will be never cached. how can i do that ?
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()));
精彩评论