<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">this would rewrite the flash movie to the page, which you probably don't want.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>you could try setting the height of the object/embed tag using javascript instead.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>just use the id you specify when you write it to the page - the id is the second parameter in the 'new SWFObject' line.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>so it would be:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>document.getElementById('swfid').style.height = 500;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(or something close to that)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Jun 5, 2006, at 11:22 PM, Hay, Owen wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P><FONT size="2" face="Arial">Hey all,</FONT> </P><P><FONT size="2" face="Arial">I've been trying to resize a swfObject like from a getURL javascript call inside my flash application like so:</FONT> </P> <BR><P><FONT size="2" face="Arial">function newHeight(h)</FONT> <BR><FONT size="2" face="Arial">{</FONT> <BR><FONT size="2" face="Arial"> so.setAttribute("height", h);</FONT> <BR><FONT size="2" face="Arial"> so.write("flashContent");</FONT> <BR><FONT size="2" face="Arial">}</FONT> <BR><FONT size="2" face="Arial">//--></FONT> </P> <BR><P> <FONT size="2" face="Arial"><div id="flashcontent"></FONT> <BR> <FONT size="2" face="Arial"><strong>You need to upgrade your Flash Player</strong></FONT> <BR> <FONT size="2" face="Arial">This is replaced by the Flash content. </FONT> <BR> <FONT size="2" face="Arial">Place your alternate content here and users without the Flash plugin or with </FONT> <BR> <FONT size="2" face="Arial">Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> </FONT> <BR> <FONT size="2" face="Arial">tags. Include a link to <a href="swfobject.html?detectflash=false">bypass the detection</a> if you wish.</FONT></P><P> <FONT size="2" face="Arial"></div></FONT> </P><P> <FONT size="2" face="Arial"><script type="text/javascript"></FONT> <BR> <FONT size="2" face="Arial">// <![CDATA[</FONT> <BR> <BR> <FONT size="2" face="Arial">var so = new SWFObject("myflash.swf", "myflash", "300", "300", "8", "#FF6600");</FONT> <BR> <FONT size="2" face="Arial">so.write("flashcontent");</FONT> <BR> <BR> <BR> <BR> <FONT size="2" face="Arial">// ]]></FONT> <BR> <FONT size="2" face="Arial"></script></FONT> </P> <BR><P><FONT size="2" face="Arial">The problem is that I would like to be able to resize the object without having to reload the swf. I looked at the .js source, and it doesn't look like any methods were designed for this purpose. Does anyone know of an effective way of resizing the flash object without this reload? </FONT></P><P><FONT size="2" face="Arial">Thanks</FONT> </P><P><FONT size="2" face="Arial">~O~</FONT> <BR><FONT size="2" face="Arial"><A href="mailto:owenhay@amazon.com">owenhay@amazon.com</A></FONT> </P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SWFObject mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>