Full Screen Problem


i'm having trouble, want animation able go full screen, doesn't seem working. don't know if problem in actionscript or html. help

 

 

 

fullscreenbut.addeventlistener(mouseevent.click, gofullscreen);

 

function gofullscreen(event:mouseevent):void

{

    setfullscreen();

}

 

function setfullscreen():void

{

    if (stage.displaystate== "normal")

    {

        stage.displaystate="fullscreen";

        stage.scalemode = stagescalemode.no_scale;

    }

    else

    {

        stage.displaystate="normal";

    }

}

 

 

///////html/////////

 

<body>

        <object id="flashid" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200">

                <param name="movie" value="animation.swf" />

                <param name="quality" value="high" />

                <param name="wmode" value="opaque" />

                <param name="swfversion" value="15.0.0.0" />

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

<!-- param tag prompts users flash player 6.0 r65 , higher download latest version of flash player. delete if don’t want users see prompt. -->

                <param name="expressinstall" value="scripts/expressinstall.swf" />

<!-- next object tag non-ie browsers. hide ie using iecc. -->

<!--[if !ie]>-->

                <object type="application/x-shockwave-flash" data="civilwareratest12.swf" width="1920" height="1080">

<!--<![endif]-->

                        <param name="quality" value="high" />

                        <param name="wmode" value="opaque" />

                        <param name="swfversion" value="15.0.0.0" />

                        <param name="expressinstall" value="scripts/expressinstall.swf" />

<!-- browser displays following alternative content users flash player 6.0 , older. -->

                        <div>

                                <h4>content on page requires newer version of adobe flash player.</h4>

                                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="get adobe flash player" width="112" height="33" /></a></p>

                        </div>

<!--[if !ie]>-->

                </object>

<!--<![endif]-->

        </object>

        <script type="text/javascript">swfobject.registerobject("flashid");</script>

</body>

try:

 

 

///////html/////////

 

<body>

        <object id="flashid" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200">

                <param name="movie" value="animation.swf" />

                <param name="quality" value="high" />

                <param name="wmode" value="opaque" />

                <param name="swfversion" value="15.0.0.0" />

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

<!-- param tag prompts users flash player 6.0 r65 , higher download latest version of flash player. delete if don’t want users see prompt. -->

                <param name="expressinstall" value="scripts/expressinstall.swf" />

<!-- next object tag non-ie browsers. hide ie using iecc. -->

<!--[if !ie]>-->

                <object type="application/x-shockwave-flash" data="civilwareratest12.swf" width="1920" height="1080">

<!--<![endif]-->

                        <param name="quality" value="high" />

                        <param name="wmode" value="opaque" />

                        <param name="swfversion" value="15.0.0.0" />

                        <param name="expressinstall" value="scripts/expressinstall.swf" />

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

<!-- browser displays following alternative content users flash player 6.0 , older. -->

                        <div>

                                <h4>content on page requires newer version of adobe flash player.</h4>

                                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="get adobe flash player" width="112" height="33" /></a></p>

                        </div>

<!--[if !ie]>-->

                </object>

<!--<![endif]-->

        </object>

        <script type="text/javascript">swfobject.registerobject("flashid");</script>

</body>



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support