Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Question .swf aspect ratio

    hi all,
    I wanted to know "how to control the aspect ratio of .swf in different resolution".
    I already done :
    Stage.scaleMode="" the values can be "showAll,noBorder,exactFit and noScale".
    Is there any other way so that the .swf remain unchanged if we view the .swf on PC, TV etc.
    Kindly help.
    thanks and regards

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    The default setting is generally the best approach for publish settings. The publish settings often give the mistaken impression that the flash file will automatically adapt to the end users resolution. This is not the case. In order to have a true resolution friendly application, you need to account for the end users resolution and not how the file is published. Generally, this entails checking the users resolution settings and loading an appropriatly sized file for their settings...

    screenX=System.capabilities.screenResolutionX
    trace(screenX);

    Once the users settings are determined, you can use a conditional statement to determine what file to load...

    Code:
    if(screenX<1000){
    _root.loadMovie("my800x600.swf");
    }else if(screenX>1000){
    _root.loadMovie("my1024x768.swf");
    }
    The scaleMode setting indicates the current scaling of the SWF file within Flash Player and is not based on user resolution settings.
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial