1 Reply Latest reply on Nov 6, 2006 1:07 PM by protohippy

    Full screen breaks with embed

    protohippy
      Hello,

      I have a movie that I am trying to put to this website. The designer wants to keep it within this table, but wants it to be able to go full screen. I have the movie working when you access it directly ( http://www.progressivemultimediaproductions.com/images/test/testbig/test03-6-2.html) All's you have to do is use your up and down arrows and it should resize. Like I said it works just fine like that, but when I take the html code and add it to the page that I am working on, when I publish it will no longer go to full screen. Now, I am still pretty new to this, and I can post my script and my html of the page when it works, and when it doesn't so that they can be compared. I just need to find out where this is breaking, I am past my deadline and need to get this done asap! I am desperate and cannot find the hlep that I need. So if there is any kind soul out there that can help me, let me know, and I will send you my code.

        • 1. Re: Full screen breaks with embed
          protohippy Level 1
          Here is the HTML of the working page:

          <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
          <title>test03-6-2</title>
          </head>
          <body bgcolor="#ffffff">
          <!--url's used in the movie-->
          <!--text used in the movie-->
          <!-- saved from url=(0013)about:internet -->
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1024" height="768" id="test03-6-2" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="movie" value="test03-6-2.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="test03-6-2.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="1024" height="768" name="test03-6-2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
          </object>
          </body>
          </html>



          Here is the HTML of the NONWORKING Page:

          <html>
          <head>
          <script type="text/javascript" src="ieupdate.js"></script>;
          <title>iframe HOME</title>
          <style type="text/css">
          body {
          background-color: transparent;
          font-family: Arial, Helvetica, sans-serif;
          font-size: 10px;
          color: #000000;
          font-weight: bold;
          scrollbar-face-color:ffffff;
          scrollbar-highlight-color:000000;
          scrollbar-3dlight-color:ffffff;
          scrollbar-shadow-color:000000;
          scrollbar-darkshadow-color:ffffff;
          scrollbar-arrow-color:000000;
          scrollbar-track-color:f0f0f0;
          }
          a:link {
          color: #888888;
          text-decoration: none;
          }
          a:visited {
          text-decoration: none;
          color: #888888;
          }
          a:active {
          text-decoration: none;
          color: #888888;
          }
          a:hover {
          text-decoration: underline;
          color: #888888;
          cursor:crosshair;
          }
          a:hover img {
          filter:Gray;
          }
          </style>
          <script type="text/javascript" src="ieupdate.js"></script>
          </head>
          <body>


          <div id="TopPlaylistTab" class="revealcontent" displayorder="5" style="position:absolute; left:65px; top:15px; width:684px; height:343px; z-index:5">
          <img src="img/TopPlaylistTab.gif">
          </div>


          <div id="ContentBackground" class="revealcontent" displayorder="4" style="position:absolute; left:15px; top:15px; width:684px; height:343px; z-index:4">
          <img src="img/animegirlplayer_BG.gif">
          </div>


          <div id="ContentForground" class="revealcontent" displayorder="5" style="position:absolute; left:34px; top:93px; width:319px; height:240px; z-index:5">

          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1024" height="768" id="test03-6-2" align="left">
          <script type="text/javascript">startIeFix();</script>
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="movie" value=" http://www.progressivemultimediaproductions.com/images/test/testbig/test03-6-2.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <embed src=" http://www.progressivemultimediaproductions.com/images/test/testbig/test03-6-2.swf" width="1024" height="768" align="left" quality="high" wmode="transparent" name="test03-6-2" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" scale="true" />
          </object><!-- --><script type="text/javascript">endIeFix();</script>
          </body>
          </html>
          </div>


          <!--div id="TopBandsTextScroll" class="revealcontent" displayorder="5" style="overflow:scroll; overflow-x:hidden; position:absolute; left:34px; top:93px; width:460px; height:240px; z-index:5">
          <a href="#"><img src="img/animegirl03.jpg" border="0"></a>
          <br>
          <hr style="position:absolute; color:f0f0f0; width:170px; height:10px">
          <br>
          fdogjz;fvboisfg hs[dfghj lzsoizjdgh ;oidja 'pooiidf gzd'fppojg ad'pojg a'dojfg 'adpof g'
          paDOfjg 'zdojhfg z'dfgjh 'dfgh g;lkjahdsf;g zdfih ' "IHJSfd;gih:SDHvg sdjfhv;aS dihh :S di :OSHfgkjBNvusd du :SODiuf
          SD;HVG x:i:ihV oihV;oids sdiHV ":sdfoiHV sodI V;sdoiHV"sdi sdLVIs d' VB"siV "idVB "d VBIsdG "IVB "cIVBU"cIUV "xc VB'ixucB "ipV "pixcoUJV "ipocuV 'XPOCIUV "pociuvB x"icUVB' xc'IVBU
          :cvJBHx:clkjHVB xocBH xivhjB' xcHBV xC xc BV 'XCIBVHIJ cv :ihicxvB :xcvoBI <p>
          fdogjz;fvboisfg hs[dfghj lzsoizjdgh ;oidja 'pooiidf gzd'fppojg ad'pojg a'dojfg 'adpof g'
          paDOfjg 'zdojhfg z'dfgjh 'dfgh g;lkjahdsf;g zdfih ' "IHJSfd;gih:SDHvg sdjfhv;aS dihh :S di :OSHfgkjBNvusd du :SODiuf
          SD;HVG x:i:ihV oihV;oids sdiHV ":sdfoiHV sodI V;sdoiHV"sdi sdLVIs d' VB"siV "idVB "d VBIsdG "IVB "cIVBU"cIUV "xc VB'ixucB "ipV "pixcoUJV "ipocuV 'XPOCIUV "pociuvB x"icUVB' xc'IVBU
          :cvJBHx:clkjHVB xocBH xivhjB' xcHBV xC xc BV 'XCIBVHIJ cv :ihicxvB :xcvoBI <p>
          fdogjz;fvboisfg hs[dfghj lzsoizjdgh ;oidja 'pooiidf gzd'fppojg ad'pojg a'dojfg 'adpof g'
          paDOfjg 'zdojhfg z'dfgjh 'dfgh g;lkjahdsf;g zdfih ' "IHJSfd;gih:SDHvg sdjfhv;aS dihh :S di :OSHfgkjBNvusd du :SODiuf
          SD;HVG x:i:ihV oihV;oids sdiHV ":sdfoiHV sodI V;sdoiHV"sdi sdLVIs d' VB"siV "idVB "d VBIsdG "IVB "cIVBU"cIUV "xc VB'ixucB "ipV "pixcoUJV "ipocuV 'XPOCIUV "pociuvB x"icUVB' xc'IVBU
          :cvJBHx:clkjHVB xocBH xivhjB' xcHBV xC xc BV 'XCIBVHIJ cv :ihicxvB :xcvoBI
          </div-->


          </body>
          </html>


          And here is the ActionScript that I am using to toggle between full screen and not full screen.

          resizer = new Object;
          resizer.onResize = function()
          {
          (isOriginal) ? setOriginal() : setFullScreen();
          }
          Stage.addListener(resizer);
          Stage.align = "TL";
          Stage.scaleMode = "noscale";
          var isOriginal:Boolean = true;

          onLoad = function()
          {
          setup();
          resizer.onResize();
          }
          function setup()
          {
          original_width = 360; // normal be from metadata
          original_height = 240; // normal be from metadata

          player.maintainAspectRatio = false;
          player.autoSize = false; // i will control size
          player.contentPath = "armydark1.flv"; // load file
          setOriginal()
          setKeyControls();
          }
          function setKeyControls()
          {
          var kControl = new Object;
          kControl.onKeyDown = function()
          {
          if(Key.isDown(Key.DOWN))
          {
          setFullScreen()
          } else
          if(Key.isDown(Key.UP))
          {
          setOriginal();
          }
          }
          Key.addListener(kControl);
          }
          function setOriginal()
          {
          isOriginal = true;
          player.setSize(original_width,original_height);
          player._x = (Stage.width/2)-(original_width/2)
          player._y = (Stage.height/2)-(original_height/2);
          }
          function setFullScreen()
          {
          isOriginal = false;
          player._x = 0;
          player._y = 0;
          player.setSize(Stage.width,Stage.height);
          }