HTML over flash without stopping flash interaction

I have an html div placed on top of an interactive flash movie, but when the mouse moves over the div, it cannot interact with the flash (the view changes when you move or click the mouse). Is there a way to get the flash to receive mouse movements and clicks, but leaving visible html?

I can not change the SWF file Flash.

Edit: To make it more understandable, this is a layer of information sitting on top of Google Street View (flash), the problem is that I can’t move the street view around where the layer is overlapping.

+3
source share
3 answers

Try something like this:

<object> <param name="wmode" value="transparent" /> <embed src="example.swf" wmode="transparent"></embed> </object> 

It should be noted the <param /> with a transparent attribute and wmode="transparent" in the embed tag. You will also need to run the following javascript code to make this work in all browsers:

 theObjects = document.getElementsByTagName("object"); for (var i = 0; i < theObjects.length; i++) { theObjects[i].outerHTML = theObjects[i].outerHTML; } 

This code should run when the document is loaded. On the site, I got this code from claims that it must be run from an external file to work (although I have not tested it).

I got this answer from here, where you can get more details and a working example:
http://www.cssplay.co.uk/menus/flyout_flash.html

+4
source

I believe the short answer is: No.

Unfortunately.

However, if you have full control over how the Flash object is created, you can open the public API for javascript, allowing it to "manually" translate the direct coordinate of the mouse and mouse button information into flash, since you control the mouse on top of the HTML overlay.

It might be worth checking if the Flash Street Street View object provides an open javascript API that can allow you to control some flash control based on mouse events selected by your HTML overlay.

Wait for the sky to fall if you try this. :-)

+2
source

should know that wmode = transparent will kill using the scroll wheel in firefox. this is true even in FP10

0
source

All Articles