Flex 4 Stage.scalemode Detailed (Part two Flex 4 Web project)

Source: Internet
Author: User

First, the release target is the independent Flashplayer player.

Scaling and alignment modes are similar to Flex 4 desktop projects in many places.

Specify the window content area (stage) size for flashplayer by using [SWF (WIDTH=XXX,HEIGHT=XXX)] metadata in Fx:metadata, or by adding-default-size xxx xxx to the compiler parameter. The default size of the stage is still 500x375.

When ScaleMode is Noscale, the stage size and application size change as the window size changes to fill the entire window content area. If ScaleMode is not noscale, unlike desktop programs, the size of the application will not change when the window size changes. The stage dimension is maintained to the initial set size (for example, when Noscale, the window content area becomes 800x600, the stage and application dimensions also become 800x600, such that scalemode changes to another value, The stage size changes back to the initial size 500x375, while the application size is maintained as 800x600 and does not change with the window. )

The effect of the Stage.align value on the SWF content location is the same as for the Flex 4 desktop program, where the window always treats the SWF content size as the initial set size to calculate the positioning, although the size of the SWF stage and application changes with the size of the window in Noscale mode , but the SWF content is still located in the initial size of the SWF, so there will be the same offset error as in the Flex 4 desktop Project


Not to be continued

This article comes from "blog naming is as troublesome as variable name" blog, be sure to keep this source http://cstar.blog.51cto.com/2923639/1570491

Flex 4 Stage.scalemode Detailed (Part two Flex 4 Web project)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.