# \<a\> on a flash \<object\> fixing it

**URL:** <https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004>\
**Category:** web dev\
**Created:** [June 2, 2008, 3:43pm UTC](https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004 "2008-06-02T15:43:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)\
**Post date:** [June 2, 2008, 3:43pm UTC](https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004/1 "2008-06-02T15:43:50Z")

</div>

Hi,

I’ve got a swf-file (not the fla) and I want to create a link, but can’t get it working. Could anybody help me with this? (Is it even possible?)

```auto

<a href="link.html" title="link">
<!--[if !IE]> -->
    <object type="application/x-shockwave-flash" data="3.swf" width="117" height="117">    
    <!-- <![endif]-->
    <!--[if IE]>
    <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="117" height="117">
        <param name="movie" value="3.swf" />
        <!--><!--dgx-->
        <param name="loop" value="true" />
        <param name="menu" value="false" />
        <p></p>
    </object></a>
    <!-- <![endif]-->

```

Thanks

3Pinter

---

<div class="post-metadata">

**Author:** ![fasterthanlight](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@fasterthanlight](https://forum.kirupa.com/u/fasterthanlight)\
**Post date:** [June 2, 2008, 3:45pm UTC](https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004/2 "2008-06-02T15:45:48Z")

</div>

I genuinely do not know if you can wrap \<object\> with \<a\> tags…

optimally you would make a big transparent button in flash and do it… but if you gots no access to the fla then… i think you’re out of luck

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [June 2, 2008, 5:38pm UTC](https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004/3 "2008-06-02T17:38:18Z")

</div>

Use the onclick event:

```auto

<object onclick="javascript:window.open('yourlink.html');" ...>

```

May give you some issues in IE though. Don’t know!

---

<div class="post-metadata">

**Author:** ![fasterthanlight](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@fasterthanlight](https://forum.kirupa.com/u/fasterthanlight)\
**Post date:** [June 3, 2008, 1:25am UTC](https://forum.kirupa.com/t/a-on-a-flash-object-fixing-it/262004/4 "2008-06-03T01:25:06Z")

</div>

■■■■ thee internets!
