<html><div style='background-color:'><DIV>
<P>but in design time i dont know height/width of the flash .<BR><BR></P></DIV>
<DIV></DIV>>From: "Muchacho, Laurent (TWIi London)" <LMUCHACHO@TWII.NET>
<DIV></DIV>>Reply-To: "[JavaScript List]" <JAVASCRIPT@LATECH.EDU>
<DIV></DIV>>To: "'[JavaScript List]'" <JAVASCRIPT@LATECH.EDU>
<DIV></DIV>>Subject: RE: [Javascript] getting flash width and height
<DIV></DIV>>Date: Fri, 29 Aug 2003 15:29:25 +0100
<DIV></DIV>>
<DIV></DIV>>Hi
<DIV></DIV>>
<DIV></DIV>>One of the way to get the width and height of a flash
<DIV></DIV>>
<DIV></DIV>>let says that your flash tag look something like this
<DIV></DIV>>
<DIV></DIV>>OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
<DIV></DIV>>codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
<DIV></DIV>>b#version=5,0,0,0' width='266' height='107' id=ShockwaveFlash1>
<DIV></DIV>><PARAM VALUE="1.swf" NAME="movie">
<DIV></DIV>><PARAM VALUE="high" NAME="quality">
<DIV></DIV>><PARAM VALUE="#000000" NAME="bgcolor">
<DIV></DIV>><EMBED src=1.swf width=266 height=107 DIV < bgcolor="#000000" quality="high">>NAME='home' ALIGN='absmiddle' TYPE='application/x-shockwave-flash'
<DIV></DIV>>PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>
<DIV></DIV>></OBJECT DIV <>>
<DIV></DIV>>then you can do this who will work in ie and ns6 & 7
<DIV></DIV>>
<DIV></DIV>>function flash_width_and_height(){
<DIV></DIV>>var oFlashTag = document.getElementById('ShockwaveFlash1');
<DIV></DIV>>var iWidth = oFlashTag.width
<DIV></DIV>>var iHeight = oFlashTag.height
<DIV></DIV>> alert('width = ' + iWidth + '\nheight = ' + iHeight);
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>you must call this once the page as loaded like in the body or as you like
<DIV></DIV>>BODY onload="flash_width_and_height()"
<DIV></DIV>>
<DIV></DIV>>Laurent
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>-----Original Message-----
<DIV></DIV>>From: Tamer Mazen [mailto:tamer_mazen@hotmail.com]
<DIV></DIV>>Sent: 28 August 2003 21:34
<DIV></DIV>>To: javascript@LaTech.edu
<DIV></DIV>>Subject: [Javascript] getting flash width and height
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Hi ,
<DIV></DIV>>Can any one tell me how to get Flash width and height using javascriot
<DIV></DIV>>functions .
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Add photos to your e-mail with MSN 8. Get 2 months FREE*.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>DISCLAIMER - The preceding e-mail message (including any attachments)
<DIV></DIV>>contains information that may be confidential, may be protected by the
<DIV></DIV>>attorney-client or other applicable privileges, or may constitute non-public
<DIV></DIV>>information. It is intended to be conveyed only to the designated
<DIV></DIV>>recipient(s) named above. If you are not an intended recipient of this
<DIV></DIV>>message, or have otherwise received it in error, please notify the sender by
<DIV></DIV>>replying to this message and then delete all copies of it from your computer
<DIV></DIV>>system. Any use, dissemination, distribution, or reproduction of this
<DIV></DIV>>message by unintended recipients is not authorized and may be unlawful. The
<DIV></DIV>>contents of this communication do not necessarily represent the views of
<DIV></DIV>>this company.
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Javascript mailing list
<DIV></DIV>>Javascript@LaTech.edu
<DIV></DIV>>https://lists.LaTech.edu/mailman/listinfo/javascript
<DIV></DIV></div><br clear=all><hr>STOP MORE SPAM with <a href="http://g.msn.com/8HMBEN/2728??PS=">the new MSN 8</a> and get 2 months FREE*</html>