views:

407

answers:

2

How do I get a JavaScript event when a Flash movie loses focus?

eg. like when the user clicks the HTML page.

+1  A: 

I don't know the general answer, but if your flash is just diplaying things, no user interaction... try adding a hidden textfield and give the focus to it. Then you can check for that blur event.

eipipuz
+1  A: 

Cant remember off hand if divs support onFocus and onBlur, but you could try making one div absolutely positioned to the top left where the width = the body width and the height = the body height, then put another one on top of it which only covers the object in question, then set an action to the big one's onFocus. Probably wont work, it was just my first thought.

Shadow