OnMouseover flash element?

I cannot figure out how to fire a javascript event when going through a flash element, even if it is on wmode:transparent.

I tried placing a transparent touch div on top of the flash element with the onMouseover event, and it worked, but the flash became useless and completely unattractive.

Appreciate any ideas.

thank

+3
source share
2 answers

This is much simpler than ExternalInterface if you are looking for simple mouse detection on all SWF.

Just tweak the <object>or tag <embed>that embeds SWF through Javascript.

document.getElementById ("content-banner"). onmouseover = over;

function over (evt)
{
 alert ("moused over");  
}

http://jsfiddle.net/p7YkA/

+8

ExternalInterface JavaScript, Flash.

+1

Source: https://habr.com/ru/post/1784189/


All Articles