Reputation: 3206
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
Reputation: 6307
I think you want stage.stageWidth, and stage.stageHeight, not stage.width, and stage.height.
Upvotes: 4