开发者

How to automatically include a number of images in the SWF file?

i'm trying to include a number of images in my SWF file not by loading them but by embedding them in the SWF 开发者_运维问答itself. I found the following instruction to do that:

[Embed(source="../graphics/images/ss0.png")] private var SS0:Class;

Basically, i want to embed a different number of images each time. Is there a way to do that automatically (let's say inside a for loop) or do i have to type manually this instruction for each image i want to include?


You could store all your PNG files in a single ZIP file, then use the FZip class to extract them. See the example of this on their site.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜