?
Solved

Can't make flash movie full screen in browser

Posted on 2011-02-11
2
Medium Priority
?
392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
tomaugerdotcom earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.
Suggested Courses

752 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