开发者

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

开发者 https://www.devze.com 2022-12-25 09:19 出处:网络
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:

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

精彩评论

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

关注公众号