Solved

Can't make flash movie full screen in browser

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

914 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

18 Experts available now in Live!

Get 1:1 Help Now