A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: stage.fullScreenWidth and stage.fullScreenHeight returns zero

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Posts
    206

    stage.fullScreenWidth and stage.fullScreenHeight returns zero

    Just doing this: trace( stage.fullScreenWidth, stage.fullScreenHeight );
    Gets me 0,0, instead of the actual resolution of my (laptop, no external screen) monitor...what am I doing wrong here?

  2. #2
    AS2 intolerant person
    Join Date
    Jan 2009
    Location
    Swansea
    Posts
    352
    the livedocs suggests that problems can occur if the browser is movable, i suggest you do some studying:

    http://livedocs.adobe.com/flash/9.0/...ullScreenWidth

    flos

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127
    If what you want is the full actual resolution of the screen do this
    PHP Code:
    var ScreenSizeX:int Capabilities.screenResolutionX;
    var 
    ScreenSizeY:int Capabilities.screenResolutionY;
    trace(ScreenSizeX " ScreenSizeX");
    trace(ScreenSizeY " ScreenSizeY"); 
    see these for more info on capabilities
    http://help.adobe.com/en_US/ActionSc...0204-7cd8.html

    http://help.adobe.com/en_US/AS3LCR/F...puArchitecture

    mark

Tags for this Thread

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