A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Determining Screen Size>> Important

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    11

    Determining Screen Size>> Important

    Hi,

    I'm making a "screensaver" for a display booth. I created it at 1024x768, but is there a way for flash to determine was the screen resolution is and adjust accordingly? I want to do this in case some of the scrrens are smaller. If this is not possible..any suggestions?

    Also, how can I get the movie to hold on the last frame for a predetermined amount of time before it begins playing from the beginning again

    Many thanks!
    Last edited by mschouder; 03-03-2004 at 04:11 AM.

  2. #2
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    System.capabilities.screenResolutionx
    System.capabilities.screenResolutiony
    Stoc Digital Studio - Web Applications Development
    http://www.stoc-studio.ro

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    11
    thank you for the reply,
    am I supposed to put a value for x and y or leave as is?

    another problem I'm having is this;
    I resized the stage to 800x600 but when i preview the swf file on my scrren nothing fits in the flash player frame ( my screen resolution is set to 1027x728??
    what am I missing here?

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    As long as the height and width ratios are the same (800 x 600, 640 x 480, 1024 x 768, etc), you can just use fscommand(fullscreen, true); and it will resize to whatever size the screen is, whether it has to scale down or up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center