开发者

Resizing flash images on disk without affecting flash stage

I've got an animation in Flash that's made of a number of large images - too large it turns out - flash keeps crashing and running out of memory.

I'd like to scale these down to 50% but maintain their on-stage size in Flash (or at least keep the positioned the same). I've scaled them down on disk, but this scales them in flash too (so messes up their relationships).

Does anyone know of a solution to 开发者_StackOverflow社区this?


If using the timeline your best bet is to wrap them into a MovieClip and scale that, or barring that select multiple frames and resize the smaller images in one go.

If using code to load the images, you could just scale all loaded images to a uniform size in the Loader complete event callback, regardless of their original dimensions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜