title: Embeded swf file to Content asp.net page
body: <p>Greeting,
  have a swf file which content a FlvPlayback play to play targeted video.
  It is working OK when I run published HTML file from flash professional CS5.</p>
  
  <p>but when I embedded this flash to asp.net content page using   object tag the move will pay but the video controls play and stop with disappear.</p>
  
  <p>I listed down the code I sued.</p>
  
  <p>Please advice.</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="HabibWebSite.Home" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
      &lt;object width="700" height="700"&gt;
  
    &lt;embed src="Flash/FlashPlayer.swf" type="application/x-shockwave-flash" width="700" height="700"&gt;&lt;/embed&gt;
  
  &lt;/object&gt;
  
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <hr>
  
  <h2>Update</h2>
  
  <p>The swf file is depend on other files such as skin file, image, video each...</p>
  
  <p>these file are on same folder where is my swf file located and they are all under one folder my my VS2010 project. When I run the swf file from the folder in the VS2010 project is working OK but when I embed it to aspx page I will miss some controls in the flash.
  I tried another swf file that depend on external resource to run such as xml file, and images, jscript fie and the swf file will lunch but will not work and there is no images would appear but still when I run the swf file from the VS2010 project will run OK.</p>
  
  <p>I'm listing down the following :</p>
  
  <p>1-html code for the htlm file generated by flash professional CS5 to lunch the flash in  browser.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
      &lt;head&gt;
          &lt;title&gt;FlashPlayer&lt;/title&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;style type="text/css" media="screen"&gt;
          html, body { height:100%; background-color: #ffffff;}
          body { margin:0; padding:0; overflow:hidden; }
          #flashContent { width:100%; height:100%; }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="flashContent"&gt;
  
              &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="473" height="269" id="FlashPlayer" align="middle"&gt;
                  &lt;param name="movie" value="FlashPlayer.swf" /&gt;
                  &lt;param name="quality" value="high" /&gt;
                  &lt;param name="bgcolor" value="#ffffff" /&gt;
                  &lt;param name="play" value="true" /&gt;
                  &lt;param name="loop" value="true" /&gt;
                  &lt;param name="wmode" value="window" /&gt;
                  &lt;param name="scale" value="showall" /&gt;
                  &lt;param name="menu" value="true" /&gt;
  
                  &lt;param name="devicefont" value="false" /&gt;
                  &lt;param name="salign" value="" /&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;object type="application/x-shockwave-flash" data="FlashPlayer.swf" width="473" height="269"&gt;
                      &lt;param name="movie" value="FlashPlayer.swf" /&gt;
                      &lt;param name="quality" value="high" /&gt;
                      &lt;param name="bgcolor" value="#ffffff" /&gt;
                      &lt;param name="play" value="true" /&gt;
  
                      &lt;param name="loop" value="true" /&gt;
                      &lt;param name="wmode" value="window" /&gt;
                      &lt;param name="scale" value="showall" /&gt;
                      &lt;param name="menu" value="true" /&gt;
                      &lt;param name="devicefont" value="false" /&gt;
                      &lt;param name="salign" value="" /&gt;
                      &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--&lt;![endif]--&gt;
                      &lt;a href="http://www.adobe.com/go/getflash"&gt;
  
                          &lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
                      &lt;/a&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;/object&gt;
                  &lt;!--&lt;![endif]--&gt;
              &lt;/object&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>2-the code I used to lunch the swf file with aspx.</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="HabibWebSite.WebForm1" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;style type="text/css" media="screen"&gt;
          html, body { height:100%; background-color: #ffffff;}
          body { margin:0; padding:0; overflow:hidden; }
          #flashContent { width:100%; height:100%; }
          &lt;/style&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div id="flashContent"&gt;
  
              &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="473" height="269" id="FlashPlayer" align="middle"&gt;
                  &lt;param name="movie" value="Flash/FlashPlayer/FlashPlayer.swf" /&gt;
                  &lt;param name="quality" value="high" /&gt;
                  &lt;param name="bgcolor" value="#ffffff" /&gt;
                  &lt;param name="play" value="true" /&gt;
                  &lt;param name="loop" value="true" /&gt;
                  &lt;param name="wmode" value="window" /&gt;
                  &lt;param name="scale" value="showall" /&gt;
                  &lt;param name="menu" value="true" /&gt;
  
                  &lt;param name="devicefont" value="false" /&gt;
                  &lt;param name="salign" value="" /&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;object type="application/x-shockwave-flash" data="Flash/FlashPlayer/FlashPlayer.swf" width="473" height="269"&gt;
                      &lt;param name="movie" value="Flash/FlashPlayer/FlashPlayer.swf" /&gt;
                      &lt;param name="quality" value="high" /&gt;
                      &lt;param name="bgcolor" value="#ffffff" /&gt;
                      &lt;param name="play" value="true" /&gt;
  
                      &lt;param name="loop" value="true" /&gt;
                      &lt;param name="wmode" value="window" /&gt;
                      &lt;param name="scale" value="showall" /&gt;
                      &lt;param name="menu" value="true" /&gt;
                      &lt;param name="devicefont" value="false" /&gt;
                      &lt;param name="salign" value="" /&gt;
                      &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--&lt;![endif]--&gt;
                      &lt;a href="http://www.adobe.com/go/getflash"&gt;
  
                          &lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
                      &lt;/a&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;/object&gt;
                  &lt;!--&lt;![endif]--&gt;
              &lt;/object&gt;
          &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>3-html code generated when lunch the aspx page.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;&lt;title&gt;
  
  &lt;/title&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;style type="text/css" media="screen"&gt;
          html, body { height:100%; background-color: #ffffff;}
          body { margin:0; padding:0; overflow:hidden; }
          #flashContent { width:100%; height:100%; }
          &lt;/style&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form method="post" action="WebForm1.aspx" id="form1"&gt;
  &lt;div class="aspNetHidden"&gt;
  
  &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNjI2MjY0OTg0ZGS7bT2BP5w5OjKaeICJTgBmmuzIKMGdB9pFIMPQCLbAiw==" /&gt;
  &lt;/div&gt;
  
      &lt;div id="flashContent"&gt;
  
              &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="473" height="269" id="FlashPlayer" align="middle"&gt;
                  &lt;param name="movie" value="Flash/FlashPlayer/FlashPlayer.swf" /&gt;
                  &lt;param name="quality" value="high" /&gt;
                  &lt;param name="bgcolor" value="#ffffff" /&gt;
                  &lt;param name="play" value="true" /&gt;
                  &lt;param name="loop" value="true" /&gt;
  
                  &lt;param name="wmode" value="window" /&gt;
                  &lt;param name="scale" value="showall" /&gt;
                  &lt;param name="menu" value="true" /&gt;
  
                  &lt;param name="devicefont" value="false" /&gt;
                  &lt;param name="salign" value="" /&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;object type="application/x-shockwave-flash" data="Flash/FlashPlayer/FlashPlayer.swf" width="473" height="269"&gt;
  
                      &lt;param name="movie" value="Flash/FlashPlayer/FlashPlayer.swf" /&gt;
                      &lt;param name="quality" value="high" /&gt;
                      &lt;param name="bgcolor" value="#ffffff" /&gt;
                      &lt;param name="play" value="true" /&gt;
  
                      &lt;param name="loop" value="true" /&gt;
                      &lt;param name="wmode" value="window" /&gt;
                      &lt;param name="scale" value="showall" /&gt;
                      &lt;param name="menu" value="true" /&gt;
  
                      &lt;param name="devicefont" value="false" /&gt;
                      &lt;param name="salign" value="" /&gt;
                      &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--&lt;![endif]--&gt;
                      &lt;a href="http://www.adobe.com/go/getflash"&gt;
  
                          &lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
                      &lt;/a&gt;
                  &lt;!--[if !IE]&gt;--&gt;
  
                  &lt;/object&gt;
                  &lt;!--&lt;![endif]--&gt;
              &lt;/object&gt;
          &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>