html - Resize Flash Object -


i trying resize height of flash object size of divider. not work, what's wrong here? flash object displayed, it's height 100px. want resize movie later calling js-method flash , change size of div object.

<%@ page language="c#" autoeventwireup="true" codebehind="index.aspx.cs" inherits="website.pages.index" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">         <div align="center">             <div id="contentdivider" style="width:780;height:600;">                 <object width="780" height="100%">                   <embed src="../content/home.swf" type="application/x-shockwave-flash" width="780" height="100%" allowscriptaccess="samedomain" pluginspage="http://get.adobe.com/de/flashplayer/"></embed>                 </object>             </div>         </div>     </form>     <script language="javascript" type="text/javascript">         function setflashheight(height) {             contentdivider.style.height = height;         }     </script> </body> </html> 

cheers felix

i had create resizable flash object via html drag time ago, solution:

  • i created flash object % dimensions, e.g height:100%;
  • and resized flash html container , flash should follow div's height.

let me know if works you.

example

<div style="height:500px;"> <object style='height:100%;'><embed/></object> </div> 

resize div , should fine


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -