• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Can't make flash movie full screen in browser

I've tried all of the tech notes I've found and none of them work to make my flash movie be viewable in full screen in the browser (take up all space in the browser), and instead it remains at it's 600px by 400px instead of enlarging. I can't post the actual movie because the contents are not for public consumption, but the html should be enough.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
      <head>
            <title>CHWMovie2</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #ffffff;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:100%; height:100%; }
            </style>
      </head>
      <body>
            <div id="flashContent">
                  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="CHWMovie2" align="middle">
                        <param name="movie" value="CHWMovie2.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="false" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="noscale" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="allowFullScreen" value="true" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="CHWMovie2.swf" width="100%" height="100%">
                              <param name="movie" value="CHWMovie2.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#ffffff" />
                              <param name="play" value="true" />
                              <param name="loop" value="false" />
                              <param name="wmode" value="window" />
                              <param name="scale" value="noscale" />
                              <param name="menu" value="true" />
                              <param name="devicefont" value="false" />
                              <param name="salign" value="" />
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="allowFullScreen" value="true" />
                        <!--<![endif]-->
                              <a href="http://www.adobe.com/go/getflash">
                                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                              </a>
                        <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                  </object>
            </div>
      </body>
</html>

I have also added the following line of code to my action script on the first frame

this.stage.displayState=StageDisplayState.FULL_SCREEN;

I am publishing to flash player 9, action script 3.0

0
BobHavertyComh
Asked:
BobHavertyComh
1 Solution
 
tomaugerdotcomCommented:
Well, you have scale=noscale in there, so the Flash IS already taking up the whole screen, but just not scaling. If you want the elements to actually grow to fill the screen, then make sure scale parameter is omitted.

Otherwise, if you don't want things to get bigger, but to fill the screen, then you need to place the elements on your stage using ActionScript or make sure that the elements that you place on the stage are big enough to fill the screen when the browser window is expanded.

I don't know what your content is, but if it has user controls (buttons, menus etc) and you want them to be "fluid" like a fluid design webpage, then you need to detect the stage size (and the resize event) and calculate their positions and place them using actionScript. Flash does not automatically reflow stuff for you.

Flex does, however, if you design your page using MXML, so maybe this might be an alternative for you.

T
0
 
BobHavertyComhAuthor Commented:
the scale attribute was the problem. Now it works. Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now