开发者

flash: loading swf file within another swf in order to use it's functions

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()));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜