# Linking a flash file in html

**URL:** <https://forum.kirupa.com/t/linking-a-flash-file-in-html/101571>\
**Category:** Uncategorized\
**Created:** [February 11, 2004, 2:44pm UTC](https://forum.kirupa.com/t/linking-a-flash-file-in-html/101571 "2004-02-11T14:44:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![icemen00](https://avatars.discourse-cdn.com/v4/letter/i/cab0a1/32.png) [@icemen00](https://forum.kirupa.com/u/icemen00)\
**Post date:** [February 11, 2004, 2:44pm UTC](https://forum.kirupa.com/t/linking-a-flash-file-in-html/101571/1 "2004-02-11T14:44:23Z")

</div>

Hi i have a problem with linking a flash file in html.  
I dont want to make the link IN flash but with code .

i have the following code ant it isn’t working

\<a href=“www.LINK.NL”\>  
\<object onClick=“window.location.href=LOCATION” classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0)” width=“234” height=“60”\>  
\<param name=“movie” value=“MOVIE URL.swf”\>  
\<param name=“quality” value=“high” \>  
\<embed src=“MOVIE URL.swf” quality=“high” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” width=“234” height=“60”\>\</embed\>  
\</object\>\</a\>

i realy hope some one know how to make it work i surfed for hours and found nothing,

tnx!:nerd:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2004, 9:07am UTC](https://forum.kirupa.com/t/linking-a-flash-file-in-html/101571/2 "2004-02-20T09:07:13Z")

</div>

why link the swf in html? (don’t think it’s possible)  
just create a rectangle with width&height as you movie. then create a button of it and add this to your button:  
[AS]  
on (load) {  
this.\_alpha = 0;  
}

on (release) {  
getURL(“[http://www.site.com/](http://www.site.com/)”);  
}  
[/AS]

that way the whole swf will be a link.
