Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex:ActionScript项目大小问题_Apache Flex_Actionscript 3_Size - Fatal编程技术网

Apache flex Flex:ActionScript项目大小问题

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

我有一个小时的有趣问题。。在我的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.stageHeight,而不是stage.width和stage.height。

我想你想要的是stage.stageWidth和stage.stageHeight,而不是stage.width和stage.height。

天哪!我怎么会错过这个。。非常感谢你!我试过舞台。舞台高度我把它设为100,但在跟踪中它仍然给我950 omg!我怎么会错过这个。。非常感谢你!我试过舞台。舞台高度我把它设为100,但在追踪中它仍然给我950