Actionscript 3 AS3-Flash 11和全屏幕

Actionscript 3 AS3-Flash 11和全屏幕,actionscript-3,flash,flash-builder,Actionscript 3,Flash,Flash Builder,我在设置程序全屏运行时遇到问题 我在FlashBuilder4.5(使用Flash11.5)中创建了一个win投影仪,我尝试使用fscommands来实现它,结果只是得到了一个黑屏。。。是否有一种首选方法可以从flash builder将其设置为全屏运行 fscommand("fullscreen","true"); fscommand("allowscale","false"); 请尝试以下简单代码: <?xml version="1.0" encoding="utf-8"?>

我在设置程序全屏运行时遇到问题

我在FlashBuilder4.5(使用Flash11.5)中创建了一个win投影仪,我尝试使用fscommands来实现它,结果只是得到了一个黑屏。。。是否有一种首选方法可以从flash builder将其设置为全屏运行

fscommand("fullscreen","true");
fscommand("allowscale","false");

请尝试以下简单代码:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 applicationComplete="init();">
    <mx:Script>
        <![CDATA[

        import flash.display.StageDisplayState;

        private function init():void{

            stage.displayState = StageDisplayState.FULL_SCREEN;

        }


        ]]>
    </mx:Script>


</mx:Application>

此外,在放置此SWF文件的HTML文件中,向Flash SWF对象添加以下内容:

<param name="allowFullScreen" value="true" /> 

希望能成功