How do I set a flash object to open a url in a new window?
Posted
by Keith Donegan
on Stack Overflow
See other posts from Stack Overflow
or by Keith Donegan
Published on 2009-03-10T15:09:30Z
Indexed on
2010/05/10
14:14 UTC
Read the original article
Hit count: 293
Hi Guys,
I have this code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="250">
<param name="movie" value="Spotify_premium_300x250.swf" />
<param name="quality" value="high" />
<embed src="Spotify_premium_300x250.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="250"></embed>
</object>
EDIT: Code from Tom
<object onclick="javascript: window.open('http://www.stackoverflow.com', _blank, 'width=1024, height=600, menubar=no, resizable=yes');" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="250">
<param name="movie" value="Spotify_premium_300x250.swf" />
<param name="quality" value="high" />
<embed src="Spotify_premium_300x250.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="250"></embed>
</object>
I would like it as when a user clicks the flash object, it's opens a URL in a new window. How would I go about doing this?
Cheers, Keith
© Stack Overflow or respective owner