Flex: ActionScript project size issue

I have an interesting problem for an hour. In my flex project, all width and height properties are returned as zero. I've tried this:

    private function onEnterFrame(e:Event):void
    {
        trace(stage.width, parent.width, this.width, root.width);
    }

      

and the results:

0 0 0 0

using Flex, sdk 3.2

Can anyone help me?

Thanks..

+1


a source to share


1 answer


I think you want stage.stageWidth and stage.stageHeight, not stage.width and stage.height.



+4


a source







All Articles