简体   繁体   English

Flash:将SWF文件加载到另一个SWF文件中以使用其功能

[英]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 use it's functions and classes. 我想加载Flash文件以使用其功能和类。 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: 为了避免对swf进行缓存,您可以将随机字符串附加到SWF网址中,例如:

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

//or

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM