Solved

Can't make flash movie full screen in browser

Posted on 2011-02-11
2
384 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now