Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI don't know why, but I have an aversion to JavaScript and avoid it where possible. I went through my code and got stage.stageHeight to work. Sort of. I was getting an error message for an invalid property or method, so I added the following: override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ) : void { super.updateDisplayList( unscaledWidth, unscaledHeight ); myStageWidth = unscaledWidth; myStageHeight = unscaledHeight; } I'll have to try it on my desktop and see if everything is healed.
      singulars
    2. CObefore accessing the stage, it must be added to the display list. You must first listen for Event.ADDED_TO_STAGE. Inside of the method that fires when Event.ADDED_TO_STAGE is dispatched you may then use stage.stageWidth; Otherwise you will get an error. A common work around is to check stage in the constructor, if you cannot access it, or it is null, then you listen for Event.ADDED_TO_STAGE, both resulting in an init function. if(stage) _init(); else addEventListener(Event.ADDED_TO_STAGE, _init); private function _init(e:Event = null):void { //You may now access stage }
      singulars
    3. COPart of my structure has an application loaded through the use of an SWFLoader. I found that this sub application detected width as 1440 but height as 802. I'm guessing that has to do with toolbars. That application also loaded a gameplay demo into itself, but this one detected the width as 500 because it's container didn't have dimensions specified. I started having the primary application do the check and distribute the numbers using LocalConnection, but in the end, used a Shared Object and set up the other two applications to access it as needed.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload