Solved

Can't make flash movie full screen in browser

Posted on 2011-02-11
2
387 Views
Last Modified: 2012-05-11
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
Comment
Question by:BobHavertyComh
2 Comments
 
LVL 14

Accepted Solution

by:
tomaugerdotcom earned 500 total points
ID: 34881063
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
 
LVL 9

Author Closing Comment

by:BobHavertyComh
ID: 34887687
the scale attribute was the problem. Now it works. Thanks.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question