Auto adjust to screen resolution

I'm pretty new to Flash and am working on a background for my website (not online yet). i was wondering how others have designed applications, such as photo galleries, that automatically adjust to the resolution of the screen on which it's being viewed, as opposed to adding or removing scroll bars to view just a standard, presized bg image, as in HTML.
I assume this is a certain line of ActionScript, but like I said, I'm pretty new and am basically just guessing.
Thanks for your help.

Using 100% width and 100% height in the HTML Publish settings will get you started. You may want to review Flash "Scaling" and "aspect ratio" here:
Here are examples of different scaling parameters available in the Publish settings. You can also add these parameters directly in the html (<param name="scale" value="noscale"). All the examples replace the actual Flash dimensions with 100% for both width and height (width="100%" height="100%"). These examples use the old <object> and <embed> to illustrate the different ways to scale Flash. Once you understand how it works I’d recommend that you use swfobject to place the Flash in your final project.
View the source code for each page to see the full code.
http://www.cidigitalmedia.com/tutorials/scale/exact_fit.html
"exactFit" scales the file to fit exactly within the confines of the screen, irregardless if the movie becomes consequently distorted. The original aspect ratio is not maintained. So round things are not round and squares are not square.
http://www.cidigitalmedia.com/tutorials/scale/noScale.html
"noScale" is the default setting, and causes the movie to be displayed at the originally designed dimensions.
http://www.cidigitalmedia.com/tutorials/scale/no_border.html
"noBorder" causes the movie to be scaled to what ever dimensions are needed to have no border surrounding the movie within the player, which consequently could result in some of the movie being cut off from view. In other words, the movie will maintain the original aspect ratio and will fill the screen completely. But if the movie has to be streched wider to fill both sides of the screen, it will also stretch taller, but then some of the top and the bottom of the movie may be cut off from view.
http://www.cidigitalmedia.com/tutorials/scale/show_all.html
"showAll" scales the movie to the size of the screen (which could cause pixelation if the file contains raster information), the difference between showAll and exactFit is that showAll mantains initial movie size proportions. Because it maintains the original aspect ratio, there can be space to the sides or the top and bottom. But everything always shows and they are not distorted. But notice the photo in the center, it becomes pixilated at larger screen resolutions.
The trickiest part of trying to go full screen is that it’s difficult to make the Flash wider without making it taller also, that is, to maintain the correct proportions or aspect ratio of everything on the stage. These methods are just simple scaling accomplished with html. There are also methods to dynamically scale the stage and it’s elements using Actionscript… but that’s a much more complex undertaking.
Best wishes,
Eye for Video
www.cidigitalmedia.com
Best of luck!
Adninjastrator

Similar Messages

  • Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!

    Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!
    My magazine last month is still working ok - but this month's version has just started crashing for some reason.

    We can't know. You have not provided any system info, not told us what version of ID you use nor provided any specifics about the document like images, color profiles, fonts, paragraph styles and what have you...
    Mylenium

  • ALV size should be adjustable to screen resolution automatically

    Hi,
    Is there in any way that the size of ALV grid should be adjustable to screen resolution automatically?
    Thanks & Regards,
    Reena

    Hello Reena
    If your ALV list is the only element on your dynpro then you should not use a custom container on the dynpro. Instead use the following approach:
    *& Report  ZUS_SDN_ALVLIST_FULLSCREEN
    REPORT  zus_sdn_alvlist_fullscreen.
    DATA:
      gt_kna1           TYPE STANDARD TABLE OF kna1.
    DATA:
      go_docking        TYPE REF TO cl_gui_docking_container,
      go_alvgrid        TYPE REF TO cl_gui_alv_grid.
    START-OF-SELECTION.
    * Select some data
      SELECT * FROM  kna1 INTO TABLE gt_kna1.
    * Create docking container and dock at left side
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
    *      REPID                       =
    *      DYNNR                       =
          side                        =
                      cl_gui_docking_container=>dock_at_left
    *      EXTENSION                   = 50
    *      STYLE                       =
    *      LIFETIME                    = lifetime_default
    *      CAPTION                     =
    *      METRIC                      = 0
          ratio                       = 90  " 90% of screen
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set very high extension -> not overruled by screen resizing
      CALL METHOD go_docking->set_extension
        EXPORTING
          extension  = 99999
        EXCEPTIONS
          CNTL_ERROR = 1
          others     = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grid
      CREATE OBJECT go_alvgrid
        EXPORTING
          i_parent          = go_docking
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD go_alvgrid->set_table_for_first_display
        EXPORTING
    *      I_BUFFER_ACTIVE               =
    *      I_BYPASSING_BUFFER            =
    *      I_CONSISTENCY_CHECK           =
          i_structure_name              = 'KNA1'
    *      IS_VARIANT                    =
    *      I_SAVE                        =
    *      I_DEFAULT                     = 'X'
    *      IS_LAYOUT                     =
    *      IS_PRINT                      =
    *      IT_SPECIAL_GROUPS             =
    *      IT_TOOLBAR_EXCLUDING          =
    *      IT_HYPERLINK                  =
    *      IT_ALV_GRAPHICS               =
    *      IT_EXCEPT_QINFO               =
    *      IR_SALV_ADAPTER               =
        CHANGING
          it_outtab                     = gt_kna1
    *      IT_FIELDCATALOG               =
    *      IT_SORT                       =
    *      IT_FILTER                     =
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Empty dynpro without any elements
      CALL SCREEN '0100'.
    * NOTE: dynpro flow logic contains only the two modules shown below 
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    * Link to current dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-cprog
          dynnr                       = syst-dynnr
    *      CONTAINER                   =
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          lifetime_dynpro_dynpro_link = 3
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
    Uwe

  • Won't Re-Adjust the Screen Resolution

    I have a retinal display 13-in Macbook Pro running 10.8.5.  After I use an external monitor (27" Thunderbolt Display) and I unplug the thunderbolt display port to take my laptop to meetings, my Macbook Pro still thinks my resolution is 2560x1440.  The windows are really big and I need to readjust.  The same problem happens when I use dual-monitor.  Although the "system preference" does not recognize dual-monitor connection, but OSX still open a new application is a window that I cannot see.
    Is there a way force Macbook Pro to rescan for display type and adjust the display accordingly?  This is becoming really annoying because I have to reboot for my Macbook Pro to adjust to the default LCD display it has.
    Thanks in advance.

    Hi b,
    Go to System Preferences > Displays and adjust your resolution there.

  • Have a bit of a problem. I'm trying to adjust the resolution on a 2013 27" iMac. Brand new, bought on April 6 2013 from Apple. My friend is 84 years old so, I'm trying to help him adjust the screen so he can see the screen. Any direction would be great.

    OK. Have a 84 year old that has a hard time seeing the screen. I've been able to adjust Safari's resolution to accomadate him however, I would like to adjust the screen resolution. When I open preference's / displays, it doesn't have an option to adjust. Is there a way? Maybe thourgh terminal? The computer is the new 27" iMac purchased on April 6, 2013 from Apple. Yes, it is the newest iMac without the disk (DVD) drive. It's running Mountian Lion.
    Anyone have some direction on how to solve this enigma???
    bish

    The purchase date isn't the important info here.  The actual model of the iMac is and this info is in the model identifier.  For example, I have a late-2012 iMac, model identifier is iMac 13,2.  I will add that there is no 2013 model available.  The most recent at this time is the late-2012 model which I have.
    On my display if I select Apple->System Preferences->Displays then press the button "Display" I am presented with a screen which shows Resolution and Scaled as button options.  "Best for built-in display" is the default, however, clicking on "Scaled" brings up the various resolutions that can be used with the display:
    From this I can select a display with larger items, but keep in mind that while a larger image can be selected (using a smaller width x height value) it will not be as crisp and sharp as the default.

  • Screen resolution needs to be 1024x600pixels. can't make adjustment.

    this problem is affecting only my yahoo email. everything is 'way too big for the screen. the 'alert' tells me to rt click on windows on desktop, then choose 'properties'. in the display I'm told to click the 'settings' tab in the dialog box. then, set screen resolution to 1024 x 600 pixels or higher. this is totally confusing to me, since i can't even find the 'windows desktop' location for me first step!
    very frustrating!!! where do i start?

    Another way:
    #click the Start button (lower left on the Windows taskbar),
    #click Settings,
    #click Display, a new window will open,
    #click the Settings tab,
    #use the slider to adjust the screen resolution.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • Unable to Change Screen Resolution in Remote Session - Windows Server 2012 R2

    Does anybody know of a way to allow Remote Desktop users to adjust their own screen resolution in a remote session under Windows Server 2012 R2? We are struggling with this and can't seem to find a solution.
    When users login to their RDP session and try to adjust their screen resolution this message is displayed in Control Panel:
    "The display settings can't be changed from a remote session."
    We don't want to use the "make text and other items larger or smaller" scaling feature, as this produces undesirable results with some of our applications.  We also don't want to have to support multiple types of RDP clients or RDP shortcut
    files.
    We have looked at other posts but can't find an answer that applies to Windows Server 2012 R2.  The closest thing we could find is KB2726399, but it only applies to Server 2008.
    Does anybody have a solution for Server 2012?
    Thanks

    Hi,
    Currently you cannot change the resolution from within the session.  This is normal and expected behavior.  
    Unfortunately this means you need to set the desired resolution before connecting by using custom .rdp files, manually within the Remote Desktop Client, custom web launch page, custom windows launch program, etc.
    -TP

  • Screen resolution in my 18 All-in-one PC

    Screen appears stretched with the result diagrams like circles look like ovals. I am using Windows 7. I tried to adjust the screen resolution but I am given only 3 options none of which solves my problem. How should I adjust? Please help. 

    Hello @sundararaj_2000,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that your screen resolution is not what it should be and you do not have the options to correct it properly. I suspece that you do not have the correct drivers installed for your graphics card or they are corrupted. To ensure that you have the correct drivers isntalled please follow the steps below:
    First we need to determine what your product number is. You can do this by following the HP Support document that pertains to your computer type
    Notebook - How Do I Find My Model Number or Product Number?
    All-In-One - How Do I Find My Model Number or Product Number?
    Desktop - How Do I Find My Model Number or Product Number?
    Once you have your product number you can use it at HP's Drivers & Downloads page. You should see your computer listed click on it and you will be brought to your computer's drivers page. Select your operating system from the drop-down box. If you are unsure as to what operating system you are running or what version it is you  can use Which Windows operating system am I running? to determine what your operating system is and Is the Windows Version on My Computer 32-bit or 64-bit? to determine what version the operating system is. Once you have your operating system selected click 'Next' and scroll down you will see Driver - Graphics. Click on Driver - Graphics and you will see your Graphics driver. Download and save it to your Desktop or a location you will remember on your computer.
    Now that you have your wireless driver downloaded follow the instructions I have set out below:
    Step 1. At the Tiles Menu type "device manager"
    Step 2. Click on Device Manager
    Step 3. Click on Display Adapters
    Step 4. Right-click on your Display Adapter and select Uninstall
    ***Ensure you delete the driver when the option is presented
    Step 5. Go to the graphics drivers you downloaded earlier and install them
    Step 6. Restart your computer
    ***Now try to adjust your screen resolution.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Mac mini screen resolution not synced with monitor

    Hello! I have a Mac mini at home, equipped to an hp w2408h monitor via HDMI cable. Recently, I went to my friends' house with my Mac, plugging it in to their projector and playing Minecraft. However, I had to adjust the screen resolution, and once I got back and set everything up again, the monitor said I need to 'adjust screen resolution'. Is there any way to reset/sync/calibrate the resolution to the monitor, or do I have to go back and readjust the settings? Thanks! :3

    Reset the NVRAM

  • Screen Resolution Issues

    Hi,
    I am working with a developer on an application in air and we are having trouble adjusting the screen resolution to meet the various computers that will be running the app.
    On my computer  with resolution of 1440 x 900 the app looks great but as soon as we install it on another computer with moderately weaker resolution, much of the program is cut off.
    Is there a way have the applicaiton adjust to different screen resolutions automatically? Or is there something we can write into the code that would not require countless hours of labor?
    Or can you make a recomendation as to the resolution we should be focusing on?
    Thanks!

    Design your app with the minimum screen res your audience would be using (i.e. if you plan on making your app for your gamer friends, assume theyll be on a higher resolution, your grandmother is probably a lower res). 1024x768 is the safest bet.
    use
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    instead of trying to force a specific size.

  • Screen Resolution settings on T61P

    Hi,
    Has anyone adjusted the screen resolutions settings on their T61P from 1680X1050 to 1440X900, or even lower? If so, does everything still look crip and clear at 1440X900?
    I have the need, as do others at work to be able to drop the resolution a bit for various reasons.
    Thanks in advance.
    Dave T. - Systems Architect

    Thank you for your tips..I run XP and it is not very clear if I lower the resolution to get a larger font   I also do not have very good eyesight so this is a pain....on my old Dell laptop I could use the CTRL + scroll the mouse to enlarge the screen....on my T61 (no mouse) I do not know how to do the same thing...any other tips?
    Thank you again...I am so Thinkpad illiterate!
    Could use a Thinkpad for Dummies handbook!
    T61 XP

  • Screen resolution changes when I reboot hptouchsma​rt 9300 elite all in one pc product #: LK282AV

    screen resolution changes when I reboot hptouchsmart 9300 elite all in one pc product #: LK282AV
    When I reboot computer the screen resolution changes automatically.

    Hello anitagold:
                Welcome to HP's forum. Thank you for visiting us how ever you are on the wrong forum. You own a business Touchsmart witch has a total different operating system then home user's does. This section is for home user Touchsmarts. This is where you need to post http://h30499.www3.hp.com/ You will receive a much accurate respounce I also think they have live chat assistance as well during business hours on line as well. Your software is also different then ours is so it would not do you any good for me to give you direction on how to adjust your screen resolution. Because your computer even though they look a like on the outside they are not alike inside. Thank you frrw.

  • Controlling Remote Session Screen Resolution

    Is there a way to turn off dynamic resolution update for rdp connections (outside of the checkbox on the connection itself)? 
    It would be best if we could either disable the client system form sending the resolution info to the connections, or manually set the parameters that are being sent to the client.
    Thank you,

    Hi Daniel,
    Thank you for posting in Windows Server Forum.
    You can control the remote session screen resolution by two ways. When you connect you “Remote Desktop connection” in Display Tab you can adjust the screen resolution. And apart from that you can edit the .RDP file of server (with Notepad) which you need to
    take remote session by “Desktop Height and width” setting. Please refer following article for more information.
    RDP Settings for Remote Desktop Services in Windows Server 2008 R2
    http://technet.microsoft.com/en-us/library/ff393699(v=ws.10).aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Automatic Screen Resolution Changes?

    I have a Retina MBP 15".  When I use Mail or Safari, I like the setting set to "Best (Retina)", but when I use Photoshop, FCP or other media based apps, I like to change it my screen resolution to Scaled: "More Space".
    Is there a way (in Automator or something else) to have the MBP trigger screen resoultion changes for certain apps? and then return it to the default upon quitting that application?
    Thanks

    Hello anitagold:
                Welcome to HP's forum. Thank you for visiting us how ever you are on the wrong forum. You own a business Touchsmart witch has a total different operating system then home user's does. This section is for home user Touchsmarts. This is where you need to post http://h30499.www3.hp.com/ You will receive a much accurate respounce I also think they have live chat assistance as well during business hours on line as well. Your software is also different then ours is so it would not do you any good for me to give you direction on how to adjust your screen resolution. Because your computer even though they look a like on the outside they are not alike inside. Thank you frrw.

  • Auto Adjust Resolution?

    I've completed my web site, everything looks as I want it.  Is there a method to getting flash to auto adjust to the end users screen resolution?  ie: when the site displays on a 800x600 monitor scroll bars appear. I'd like for the site to appear on the page as whole without the scroll bars as it does on my 19 in monitor which is set to 1024x768 resolution.
    Thanks!

    I've completed my web site, everything looks as I want it.  Is there a method to getting flash to auto adjust to the end users screen resolution?  ie: when the site displays on a 800x600 monitor scroll bars appear. I'd like for the site to appear on the page as whole without the scroll bars as it does on my 19 in monitor which is set to 1024x768 resolution.
    Thanks!

Maybe you are looking for

  • DAO and Struts

    I m new to Struts and i wsh to do a stuff in it.... I m not clear with the DAOs and Business Delegate model in it and i need a sample code for continuing with wher can i get if anybody culd suggest me a well start point??

  • How to re-register.

    I have received an email from Tech support saying 'please see the numbers below.  United Kingdom - 1332102405' I can't get the number. Anyone know what it should be, please?

  • Iphone is deleting ical 3 months back how do I change this

    iphone is deleting ical 3 months back how do I change this

  • Swing weird behavior...

    Good morning. Iam making a Swing window and everything seems to work fine, thus, when I run it doesn't display anything until I resize it. It's kind of weird because I have made other examples and it doesn't have this "behavior". Here's the chunk of

  • Quicktime 7.5 update, no audio in avi

    Just "updated" my quicktime pro, and have lost audio for avi files, worked fine before update. I see this is not an isolated problem, LOTS of posts on the mac side. Apparently no support from apple on issues such as this? No testing before release? C