Tolgahan Albayrak
Tolgahan Albayrak

Reputation: 3206

Flex: ActionScript Project Size Problem

I have some interesting problem for an hour.. In my flex project, all width and height properties returns as zero.. i tried this :

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

and results :

0 0 0 0

using Flex, sdk 3.2

Anybody could help me?

Thank you..

Upvotes: 1

Views: 566

Answers (1)

quoo
quoo

Reputation: 6307

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

Upvotes: 4

Related Questions