A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Returning the users screen resolution

  1. #1
    Pillow Daddy m_andrews808's Avatar
    Join Date
    May 2001
    Location
    London England
    Posts
    924
    I'm making a site where I want the site to resize to fit to the user's screen resolution.

    I'm using System.capabilities.screenResolution.x and System.capabilities.screenResolution.y to find this, but these values always return undefined.

    Any ideas what's happening?

    Thanks in advance

  2. #2
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    your syntax is wrong:
    Code:
    System.capabilities.screenResolutionX
    
    System.capabilities.screenResolutionY
    there's no . preceding the x and y

  3. #3
    Pillow Daddy m_andrews808's Avatar
    Join Date
    May 2001
    Location
    London England
    Posts
    924
    Thanks I'll give that a try. I got the syntax from the Actionscript dictionary which seems a bit odd.

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