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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.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:更改应用程序窗口大小_Apache Flex_Actionscript - Fatal编程技术网

Apache flex Flex:更改应用程序窗口大小

Apache flex Flex:更改应用程序窗口大小,apache-flex,actionscript,Apache Flex,Actionscript,我将swf嵌入到一个c#winform中,现在我想做的是,当我点击swf中的一个按钮时,swf的大小会改变。我尝试使用stage类,但失败,系统表示未实现width/height属性: protected function button1_clickHandler(event:MouseEvent):void { stage.width = 100; stage.height = 100;

我将swf嵌入到一个c#winform中,现在我想做的是,当我点击swf中的一个按钮时,swf的大小会改变。我尝试使用stage类,但失败,系统表示未实现width/height属性:

        protected function button1_clickHandler(event:MouseEvent):void
        {
            stage.width = 100;
            stage.height = 100;

            stage.invalidate();
        }
是否有任何官方方法可以使用应用程序内部的代码更改应用程序的大小? 谢谢。

使用:

Application.application.width  = 100;
Application.application.height = 100;
有关本课程的更多信息,请访问: