平滑 Flash 动画
我有一个包含多个子剪辑(图像和文本)的 MovieClip。
我试图非常缓慢地缩放这个父剪辑 - 从 102% 下降到 98% - 这有效,但是子影片剪辑的缩放都有点不稳定 - 就像它们试图坚持像素或其他东西一样。有什么办法可以治愈这个病呢?
顺便说一句,缩放是通过在时间轴上使用补间动画来完成的。我尝试勾选“缓存位图”,但这没有什么区别。
如果我使用 3D 补间动画,就不会出现抖动现象。但我需要发布到 flash 9,所以不能使用它!
干杯
家伙
I've got a MovieClip containing several child clips (images and text).
I'm trying to scale this parent clip very slowly - from 102% down to 98% - this works, however the child movie clips are all scaling a bit jerkily - like they're trying to stick to pixels or something. What's the cure for this?
The scaling is done by using a motion tween on the timeline by the way. I've tried to tick "Cache Bitmap" but that makes no difference.
If I used the 3D motion tween, there is no jerkyness. But I need to publish to flash 9, so can't use that!
Cheers
Guy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试以下操作:
- 将所有文本字段转换为位图快照
- 如果您“必须”使用文本字段,请确保 antiAliasType 设置为 AntiAliasType.NORMAL
- 在所有位图上将平滑设置为 true
- 在所有位图上将pixelSnapping设置为PixelSnapping.NEVER
我不会将cacheAsBitmap设置为true,因为您正在缩放剪辑,这将导致播放器每帧重新绘制缓存。
祝你好运!
Try the following:
- convert all text fields to bitmap snapshots
- if you 'must' use text fields, make sure that antiAliasType is set to AntiAliasType.NORMAL
- set smoothing equal to true on all bitmaps
- set pixelSnapping to PixelSnapping.NEVER on all bitmaps
I wouldn't set cacheAsBitmap to true b/c you are scaling the clip which will cause the player to redraw the cache every frame.
Good luck!