A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Detecting screen resolution

  1. #1
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    I'm making a tutorial and i would like this program to be able to detect the screen resolution, in order to place my logo in the bottom right corner of the screen. I am using images, so using fill the screen projector won't work. I know you can do it in java script, but since this is a projector i can't use a javascriipt, or can I?

  2. #2
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    no, but if it's in MX i fhink you can detect with the new actionscript.

  3. #3
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    I've been going through the MX text and I have yet to find anything that relates the screen size. I even attempted to try the javascipt code, which didn't work.

  4. #4
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    open the reference, go to:
    Objects:Movie:Capabilities:Properties:

    screenresolution in both pizels and dpi is at the bottom.

  5. #5
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    THANKS, weird though, I tried the flash help and it did not show up upon search. Now let me get a script working.

  6. #6
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702

    System.capabilities.screenResolution.x


    The online actionscript dictionary had more info

  7. #7
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    Well I got it to work, I'm starting to really like the power of scripting in MX. Thanks again SJT

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