title: Resize Flash Object
body: <p>i trying to resize the height of a flash object to the size of a divider.
  This actually does not work, so what's wrong here? The flash object is displayed, but it's height is only 100px.
  I want to resize the movie later by calling the js-method from flash and change the size of the div object.</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Website.Pages.Index" %&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;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
          &lt;div align="center"&gt;
              &lt;div id="contentDivider" style="width:780;height:600;"&gt;
                  &lt;object width="780" height="100%"&gt;
                    &lt;embed src="../content/Home.swf" type="application/x-shockwave-flash" width="780" height="100%" allowScriptAccess="sameDomain" pluginspage="http://get.adobe.com/de/flashplayer/"&gt;&lt;/embed&gt;
                  &lt;/object&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
      &lt;script language="javascript" type="text/javascript"&gt;
          function setFlashHeight(height) {
              contentDivider.style.height = height;
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Cheers
  Felix</p>