开发者

How to divide a SWF file?

Is it possible to divide a SWF file into n parts? (for example n = 2)

what i mean is not division in time, but division in space. i want to have 2 swf files for example, one is left half of master 开发者_StackOverflow社区swf and other is right half. is that possible?

thanks in advance.


Yes, it is possible. One note though: two physically distinct .swf's one next to each other is probably a bad idea. One master .swf into which two .swf's are loaded could work, depending on your needs.

Please consult this:

http://kb2.adobe.com/cps/141/tn_14190.html

it has all the ways that one can use to position files in as2 and as3.

Generally, you are going to have one low size master file, and two much bigger .swfs that will be loaded inside it.

Some things to note: depending on your application and whether you are using as3 or as2, it might be prefered to simply load images and other data into .swf's instead of doing this.

Also, you can actually start to load a .swf, lets say an animation before the whole .swf has actually downloaded.

So it will load 5% of the whole file and start the animation. If the download slows down, the .swf animation will stall, but it will continue as soon as more data is downloaded or the speed picks up. The same can be done for any programmed .swf, though it requries a few tricks and a little bit of programming. Ask another question if you are interested in this last thing.


It is not possible to take a single swf file and divide it into multiple swf binaries.

What you could do is build a shell swf that loads the child swf n times, and presents them each with custom masks. However, you would effectively be running multiple instances of the child swf, so performance overhead would multiply.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜