Web Hosting Talk







View Full Version : Javascript onClick Question


Fazer
12-23-2004, 12:37 AM
Hello,

I have a flash movie. The question is, when someone clicks on it, I want it do something, like re-direct it. When embedding a flash movie in HTML, you have to use the <object> tag. But I can't seem to get onClick to work with the <object> tag.

Any hints?

Thanks.

Steven Dixon
12-23-2004, 08:31 AM
If I'm understanding you correctly, the only way you can use a flash movie as a means of linking or redirecting is to include the link or redirect in the flash movie itself. HTML can't (generally) interact with flash because HTML is rendered by the browser, but the flash file is being rendered by a seperate plugin.

Fazer
12-23-2004, 02:23 PM
Hi and thanks for the reply.

Yeah but since Flash files are embedded using the <object> tag, I was thinking of using the onClick function in conjunction with the <object> tag. But it didn't work.