2009-05-18 69 views
1

我有一些有趣的問題了一個小時。在我的Flex項目,所有的寬度和高度屬性返回零..我想這:軟硬度:ActionScript項目大小問題

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

和結果:

使用Flex,SDK 3.2

任何人能幫助我嗎?

謝謝。

回答

4

我想你想stage.stageWidth和stage.stageHeight,不stage.width和stage.height。 OMG!

+0

OMG!我怎麼錯過這個..非常感謝你! – 2009-05-18 01:48:25