views:

41

answers:

2

Hi, is it possible to let clicks on a HTML element that's overlaying a Flash or Silverlight object bubble through to the Flash / Silverlight object? I've been experimenting with this, but i can't figure out if it is even possible because of possible security restrictions to prevent clickjacking.

I don't have access to the source code to the FL / SL object, so i can't implement an ExternalInterface or something like that.

A: 

Any page click can be transferred to a Flash movie using the ExternalInterface class. You can use Javascript to call exposed methods in the Flash movie, and vice versa.

Don't know about Silverlight.

Robusto
+1  A: 

In Silverlight you can have an HTML overlay, catch the Javascript Click Events, use the DOM bridge to let the app know about the mouse click, and use the VisualTreeHelper.FindElementInHostCoordinates to figure out which element was clicked.

JustinAngel