Skip to content Skip to sidebar Skip to footer

How Do You Use A Flash Object As A Link?

Is it possible to use a flash document embedded in HTML as a link? I tried just wrapping the object element with an a like this:

Solution 1:

You can use transparent div with same height and width over that object. And let javascript open your url on click action on that div.

Solution 2:

Solution 3:

You could use Javascript to add a handler (added inline for brevity):

<object onclick="window.location='URLHERE'; return false;">

That should work, methinks.

This worked for me but the litle hand for clicking stuff doesn´t appear. The link works though

Solution 4:

As an addition to dlamblin's answer it is often best to use the clickTAG technique to open URLS from a flash movie.

More information can be found here:

http://www.adobe.com/resources/richmedia/tracking/designers_guide/

The advantage of using the clickTAG technique is that you can set the URL to jump to in the HTML page.

This means that you can set the flash movie to link to different places without modifying the flash file (beyond adding the initial clickTAG code). You can use link tracking on the URL as well.

Post a Comment for "How Do You Use A Flash Object As A Link?"