调整磁盘上闪存映像的大小而不影响闪存阶段
我有一个 Flash 动画,它由许多大图像组成 - 结果太大了 - Flash 不断崩溃并耗尽内存。
我想将它们缩小到 50%,但保持它们在 Flash 中的舞台大小(或者至少保持位置相同)。我已经在磁盘上缩小了它们,但这也在闪存中缩小了它们(因此弄乱了它们的关系)。
有谁知道这个问题的解决方案?
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 this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果使用时间轴,最好的选择是将它们包装到影片剪辑中并对其进行缩放,或者禁止选择多个帧并一次性调整较小图像的大小。
如果使用代码加载图像,您只需在 Loader 完成事件回调中将所有加载的图像缩放到统一大小,无论其原始尺寸如何。
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.