开发者

Package external files into flash deliverable?

开发者 https://www.devze.com 2022-12-18 00:57 出处:网络
Is it possible to package all external files, such as images and videos, into the final .swf or equivalent file? I want to keep the external files separate because it is easier to cha开发者_JS百科nge

Is it possible to package all external files, such as images and videos, into the final .swf or equivalent file? I want to keep the external files separate because it is easier to cha开发者_JS百科nge them out while developing, but I don't want them to be external when delivering the project. Does anyone know if this is possible?


you can do it with swf, and the embed tag. Check this in case you are working with flash IDE: http://www.adobe.com/devnet/flash/articles/embed_metadata.html

or you can use a swc, which works in a similar way.

Both solutions requiere Flash CS4 or flex compiler as far as I can tell.

You will have just one swf in the end, but consider that for every change you make to the "contents" file (swf or swc) will requiere that you compile again the project.


If you mean you want to develop your fla and have all assets for your swf loaded externally, then when it is time to give the swf to you customer have all of the assets loaded and saved into the swf so it can be 1 file, then no.

First off, the method for loading images, videos, etc from an external source requires different code then it would if all of the assets were compiled into the swf itself. Secondly, there is no mechanism to do this anyway.

As an alternative, you could keep all of your assets in a single separate swf that your main swf loads. Then you would be delivering 2 swfs, one with just the assets. Updating the content during development, however, will be very similar to what would be required if you just kept all of the assets in the main fla to begin with.

0

精彩评论

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

关注公众号