开发者

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

开发者 https://www.devze.com 2022-12-13 17:39 出处:网络
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 ans

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

精彩评论

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