开发者

Does flash scale pixel width and height by percent for fullscreen?

How does flash scale for fullscreen?

For example, if I draw a shape and give 开发者_JAVA技巧it a width and height of 100px (square)...does that scale up proportionally when the flash is made full screen? Or does that object stay 100px x 100px?


It will do either depending on the value of stage.scaleMode

From the docs:

The scaling behavior of the movie in full-screen mode is determined by the scaleMode setting (set using the Stage.scaleMode property or the SWF file's embed tag settings in the HTML file). If the scaleMode property is set to noScale while the application transitions to full-screen mode, the Stage width and height properties are updated, and the Stage dispatches a resize event. If any other scale mode is set, the stage and its contents are scaled to fill the new screen dimensions. The Stage object retains its original width and height values and does not dispatch a resize event.

Try it and see what happens.


It does scale perfectly. Check this , with different sizes of your browser window...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜