<object> </object> clickable

They have: 19 posts

Joined: Jun 2004

I have a flash movie defined within the section of a html document. I would like the user to click on the flash movie and then be directed to a web page. Can this be done without modifing the flash source?

If not, is it possible to define the entire html document that this move is playing on as a clickable section where the user would be redirected?

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,
If I understand you correctly, this works for me:

<script type="text/javascript" language="javascript">
function doit(){location.href='http://members.aol.com/grassblad';}
document.onclick=doit;
</script>

Vinny

Where the world once stood
the blades of grass cut me still

They have: 19 posts

Joined: Jun 2004

Thanks for the info.

I placed your code inside the and it works everywhere else but inside the flash image. I would like to be directed to the website when the image is clicked.

Any solutions?

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

As you've discovered, I'm not a Flasher (gave it up in the early '70s and anywho wants to see a less than perfect bod flashing Smiling

You might want to go through the tutorials at this link:

http://www.macromedia.com/support/flash/action_scripts/event_methods/

two events seem appropriate: onPress, onFrameEnter

Vinny

Where the world once stood
the blades of grass cut me still

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

I asked someone who is somewhat knowledge with Flash and he said:

Quote: They will have to have something that can take a click action in the movie, this is, usually (you guessed it) a button - even if it does not look like one. They then just use the getUrl([url],[target]) command with the action script for the onmouseup command.

Vinny

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.