Apache flex Flex:ActionScript项目大小问题
我有一个小时的有趣问题。。在我的flex项目中,所有宽度和高度属性都返回为零。。我试过这个:Apache flex Flex:ActionScript项目大小问题,apache-flex,actionscript-3,size,Apache Flex,Actionscript 3,Size,我有一个小时的有趣问题。。在我的flex项目中,所有宽度和高度属性都返回为零。。我试过这个: private function onEnterFrame(e:Event):void { trace(stage.width, parent.width, this.width, root.width); } 结果: 0 0 0 0 使用Flex,sdk 3.2 有人能帮我吗 谢谢。我想你想要的是stage.stageWidth和stage.stageHeig
private function onEnterFrame(e:Event):void
{
trace(stage.width, parent.width, this.width, root.width);
}
结果:
0 0 0 0
使用Flex,sdk 3.2
有人能帮我吗
谢谢。我想你想要的是stage.stageWidth和stage.stageHeight,而不是stage.width和stage.height。我想你想要的是stage.stageWidth和stage.stageHeight,而不是stage.width和stage.height。天哪!我怎么会错过这个。。非常感谢你!我试过舞台。舞台高度我把它设为100,但在跟踪中它仍然给我950 omg!我怎么会错过这个。。非常感谢你!我试过舞台。舞台高度我把它设为100,但在追踪中它仍然给我950