Flash CS5 - 舞台大小限制?
我在 Illustrator 中创建了大型矢量图形,并将其作为显示资源导入到 Flash 中。
我正在构建的应用程序将针对不同的屏幕尺寸(包括带有 AIR 2.5 的电视),并且显示资源将在运行时按比例缩小以适合目标屏幕。
最大的矢量图形导入为 5000 x 1250 像素。但是,由于 Flash Professional CS5 中的舞台大小限制,我无法导入图形(作为本机矢量或位图转换):
来自 flash.display.BitmapData 类文档:
在 AIR 1.5 和 Flash Player 10 中, BitmapData 对象的最大大小 宽度或高度为 8,191 像素, 并且总像素数不能 超过 16,777,215 像素。 (所以,如果一个 BitmapData 对象为 8,191 像素 宽,只能是 2,048 像素 高。)在 Flash Player 9 及更早版本中 以及 AIR 1.1 及更早版本, 高度限制为 2,880 像素 宽度为 2,880。
我的发布设置播放器的目标是 Air 2.5,但我仍然无法将舞台尺寸增加到 2880 x 2880 以上,也无法导入大于 2880 x 2880 的图形。
如果 Flash Player 10 和 AIR 1.5 或更高版本的 BitmapData 限制已增加,为什么我不能在该限制内导入图形和/或增加舞台的大小?
i've created large vector graphics in Illustrator to be imported in Flash as display assets.
the application i'm building will target different screen sizes (including Television with AIR 2.5) and the display assets will be scaled down at runtime to fit the target screen.
the largest of vector graphic imports is 5000 x 1250 pixels. however, i can't import the graphic (either as a native vector or a bitmap conversion) because of the stage size limitation in Flash Professional CS5:
from the flash.display.BitmapData class documentation:
In AIR 1.5 and Flash Player 10, the
maximum size for a BitmapData object
is 8,191 pixels in width or height,
and the total number of pixels cannot
exceed 16,777,215 pixels. (So, if a
BitmapData object is 8,191 pixels
wide, it can only be 2,048 pixels
high.) In Flash Player 9 and earlier
and AIR 1.1 and earlier, the
limitation is 2,880 pixels in height
and 2,880 in width.
i'm targeting Air 2.5 for the Publish Settings Player and i still can not increase the stage size above 2880 x 2880 or import graphics larger than 2880 x 2880.
if the BitmapData limitation has been increased for Flash Player 10 and AIR 1.5 or higher, why can't i import graphics and/or increase the size of the stage within that limit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flash CS5 需要更新,以便接受新的更大的舞台尺寸,但是,没有关于何时提供此类更新的信息。
另一方面,由于您的资源是矢量图形,为什么不以较小的尺寸导入它,它会是相同的。
Flash CS5 will need to be updated so that it will accept the new larger stage sizes, however, there is no information about when such an update will be available.
On the other hand, since your asset is vector graphic, why not just import it at a smaller size, it'll be the same.