开发者

Can a flex app (or a portion of a flex app) be made transparent to mouse clicks?

开发者 https://www.devze.com 2022-12-23 17:24 出处:网络
I need to superimpose my Flex app above a plain HTML control on a web page, and be able to click through the Flex app to interact with the HTML control. Is there any way to do this? No permutation of

I need to superimpose my Flex app above a plain HTML control on a web page, and be able to click through the Flex app to interact with the HTML control. Is there any way to do this? No permutation of mouseEnabled="false" or mouseChildren="false" seems to have the desired effect.

Context: trying to integrate Google Earth API (JavaScript/HTML) with my flex app. I am leaving a portion of the flex开发者_StackOverflow app transparent and empty, and positioning the Google Earth widget just below that point in the z-index. Google Earth has to be behind flex, because there are some Flex controls periodically displayed in that space.


I'm pretty sure there is no direct way for you to get mouse events to go through a Flash app.

You may be able to accomplish this with a combination of Javascript. Flash can call Javascript on your page, so you can create a function that passes clicks detected by Flash to the function and it will send the event to the page below it. I'm not 100% this will work but it's worth a try (You might have some trouble getting the correct coordinates).


Have you considered embedding Google Earth into the Flex app? Some example here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号