Ezekiel.

A Vincent said, this does not seem to be a swfobject issue as you flash file
is being embedded into the page correctly.


Have you run any of Adobe's reference swfs which demonstrate full-screen
capabilities?
(http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html etc)

A good strategy would be to get A swf working as it should, and then get
your own swf working.


Cheers
Aran

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Ezekiel
Sent: Wednesday, 24 December 2008 12:22 AM
To: SWFObject
Subject: Re: Full Screen Toggle Button and SWF Object

Hi! Can someone tell me what is wrong with my script?


On Dec 13, 11:37 am, Ezekiel <[email protected]> wrote:
> Hi! I am having difficulty with The Full Screen Toggle Button, Firefox
> 3 and swfobject.js version 2.1
> When I click on the Full Screen button in my swf file, it enters to
> Full screen mode with the "Press Escape to exit full screen message."
> But when I press "Escape" on the keyboard or click the Full screen
> button once more, the page just turns black. What could I have done
> wrong? Please check my codes:
>
> Here is the html code that I use:
>
> <!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>...</title>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1" />
>                 <meta name="Keywords" content="..." />
>         <meta name="Description" content="..." />
>                 <style type="text/css" media="screen">
>                         html, body, #content                            {
height:100%; overflow:hidden; }
>                         body                                    {
margin:0;
>                                                                  
padding:0;
>                                                                  
background: url('image.jpg');
>                                                                  
background-repeat: repeat-x;
>                                                                  
background-color: #ffffff;
>                                                                  
font-family: verdana, arial, sans-serif;
>                                                                  
font-size: .70em;
>                                                                  
color:#666666;
>                                                                 }
>                         #altContent                             {
margin-left: 108px; }
>                         div#logo                                        {
float: right; padding-top:15px; padding-right:
> 15px; }
>                         div#title                                       {
float:middle; padding-top:50px; }
>                         div#flash_download                              {
float:left; clear:left; padding-top:45px; }
>                         div#flash_download div#button           {
padding-top: 30px; }
>                         div#cubes                                       {
position:absolute; left:486px; top:295px; }
>                         div#title h1.title, div#title h2.title, div#title
h3.title
> { display: none; }
>         </style>
>
>         <script type="text/javascript"
src="assets/javascript/swfobject.js">
>         </script>
>         <script type="text/javascript">
>                 swfobject.registerObject("myId", "9.0.0", "assets/flash/
> expressInstall.swf");
>         </script>
>
> </head>
> <body>
>         <div id="content">
>                 <object id="myId" classid="clsid:D27CDB6E-
> AE6D-11cf-96B8-444553540000" width="100%" height="100%">
>                         <param name="movie" value="main.swf" />
>                         <param name="allowfullscreen" value="true" />
>                         <param name="scale" value="noscale" />
>                 <write="content" />
>
>                 <!--[if !IE]>-->
>                         <object type="application/x-shockwave-flash"
> data="main.swf" width="100%" height="100%">
>                         <param name="movie" value="main.swf" />
>                         <param name="allowfullscreen" value="true" />
>                         <param name="scale" value="noscale" />
>                 <write="content" />
>                         <!--<![endif]-->
>
>                         <div id="altContent">
>                                         <div id="logo">
>                                         <img src="assets/images/logo.jpg"
alt="...">
>                                  </div>
>
>                                         <div id="title">
>                                         <img src="assets/images/title.png"
alt="Title
> Here">
>                                                 <h1 class="title">
...</h1>
>                                 <h2 class="title"> ...</h2>
>                                         <h3 class="title"> ...</h3>
>                                         </div>
>
>                                         <div id="flash_download">
>                                         <div id="copy">
>                                                 Please download the Adobe
Flash Player to
> fully experience this site.
>                                                 </div>
>
>                                 <div id="button">
>                                         <a
href="http://www.adobe.com/products/flashplayer/";><img
> src="assets/images/flash_download.jpg" alt="Flash Download"
> style="border:0;"></a>
>                                          </div>
>                                         </div>
>
>                                 <div id="cubes">
>                                         <img src="assets/images/cubes.png"
alt="...">
>                                         </div>
>                 </div>
>                 <!--[if !IE]>-->
>                 </object>
>                 <!--<![endif]-->
>                 </object>
>         </div>
> </body>
> </html>
>
> And here is the actionscript inside flash.
> This one is on a separate frame exclusively for actions:
>
> //Function to toggle between fullscreen and normal size
> function toggleFullScreen()
> {
>         //if normal size, go to fullscreen, else go to normal size
>         if(Stage["displayState"]=="normal")
>         {
>                 Stage["displayState"]="fullScreen";
>         }
>
>         else
>         {
>         Stage["displayState"]="normal";
>         }
>
> }
>
> This is attached to the button symbol:
>
> on(press)
> {
>         toggleFullScreen();
>
> }
>
> Thank you so much for your help. I hope I have provided enough
> information for you to diagnose my problem.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to