I want to include a small swf file within an href link on my site and have the link activated when the user clicks on the swf as well as on additional text. However, just putting the OBJECT and EMBED tags as generated from Flash with the <a> tag doesn’t work.
I know some folks would say, well just put an action in the SWF to handle the click event and then navigate to your URL, but the URL will be dynamic based on the generated ASP page. Any ideas? Here’s my HTML code:
<a target='candlcart' href='doorcart.asp?action=add&doorid=1&glassid=2'>
<<Add door to cart
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="50" HEIGHT="50" id="AddToCart" ALIGN="">
<PARAM NAME=movie VALUE="AddToCart.swf"> <PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE="#FFFFFF">
<EMBED src="AddToCart.swf" quality=high bgcolor="#FFFFFF"
WIDTH="50" HEIGHT="50" NAME="AddToCart" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
</EMBED>
</OBJECT>
</a>