...

View Full Version : onclick event for OBJECT element in IE



Zvona
05-03-2006, 10:04 AM
Hello,

I can't set onclick event properly for OBJECT (flash) element properly. onclick just don't bubble outside flash object. Could this be caused by AS getUrl() function?

I tried to attach thru .htc, tried transparent IFRAME on top of object, etc. Nothing seems to work.

Is there any reasonable way to attach onclick to OBJECT element or flash movie by using JS or plain HTML? Should I do something for event bubbling?

Kor
05-03-2006, 10:32 AM
There is nothing you can do. Flash object overrides all the HTML elelemnts. Every event regarding the Flash object must be done inside the Flash object with the Flash events, if you have the original (the FLA file)

_Aerospace_Eng_
05-03-2006, 10:33 AM
Why not make something happen all in actionscript? Don't depend on javascript or the browser. onactivate will work in IE but only IE.

Zvona
05-03-2006, 01:04 PM
Why not make something happen all in actionscript? Don't depend on javascript or the browser. onactivate will work in IE but only IE.
Yes, this is the recommendation. But there comes situations (like mine) where one needs other solutions.

I got it work on FF & Opera, so I should try onactivate for IE. Thanks.

Edit: Found a workaround with onfocus.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum