dont know why, but this seems to work...
trace(this.measuredWidth + " x " + this.measuredHeight);
Thanks for the reply, I tried the statement, but the return values are incorrect.
tried it again and indeed it gives some strange numbers
HTC Desire is 109 x 65
Motorola Xoom is 73 x 43
When are you querying the width/height? Can you provide a code sample that demonstrates how you are getting the width/height?
It's very simpleView-based mobile app. I need the size of current view in order to let the ball moving inside the available view space.
<?xml version="1.0" encoding="utf-8"?>
protected function init(event:FlexEvent):void
lblSize.text = 'View size: ' + this.width + " x " + this.height;
<s:Ellipse width="80" height="80">
Thanks a lot!
Thanks you very much Shongrunden, it works!