简体   繁体   English

在SWF中播放外部SWF的线程模型?

[英]Thread model for playing external SWFs inside an SWF?

I am designing an application that allows users to use animated emoticons(defined using external SWF files) and display them inside another SWF file. 我正在设计一个允许用户使用动画表情符号(使用外部SWF文件定义)的应用程序,并将其显示在另一个SWF文件中。 This works as long as there are only a very small # emoticons at a time, but if the number increases significantly the performance starts to slow to a crawl.... The bottleneck isnt the network as there are only a few emoticons to choose from, we are just having issues displaying them simultaneously. 只要一次只有很小的#个表情符号,此方法就起作用,但是如果数量大大增加,则性能将开始缓慢爬行。...瓶颈不是网络,因为只有少数几种表情符号可供选择,我们在同时显示它们时遇到了问题。

How does the Flash threading model handle playing external SWFs? Flash线程模型如何处理播放外部SWF? Can we attempt to play them on a separate thread, or will that cause issues(like it does in Swing and Cocoa and the like) 我们可以尝试在单独的线程上播放它们,还是会引起问题(例如在Swing和Cocoa等中所做的事情)

its hard to say, when you mean loading multiple small swf , are they copies or are you creating new instances, with new properties etc... 很难说,当您要加载多个小swf时,它们是副本还是您要创建具有新属性等的新实例...

I have managed to similar thing making a 20 line poker machine that uses swf for all the images, animations . 我设法制作了20行扑克机,将所有图像,动画都使用swf进行了类似的处理。 These files each are about 600Kb and there is 12 of these at one time on the screen animated(well depends on the win); 这些文件每个约为600Kb,并且在动画屏幕上一次显示12个文件(取决于胜利);

But how i did this was load them into an array every time i needed it. 但是我这样做的方法是每次需要时都将它们加载到数组中。 and access it from there. 并从那里访问它。 i didnt seem to have any issues. 我似乎没有任何问题。

Its not much of an answer but can you explain your loading method, or put a sample html server i could see whats exactly your problem 它的答案不多,但是您能解释一下您的加载方法,还是放一个示例html服务器,我可以确切地知道您的问题是什么

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

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