开发者

Mouse X/Y detection within Flash stage not working Moz & Webkit on PC

I am trying in vain to get this Flash based navigational item working in FF and Chrome on PC. It's all good on Mac and it's just fine using IE 7 or 8 on开发者_运维知识库 PC.

The nav item consists of a ball that "follows" the cursor in relation to where it is on the page. JS is used to gather the X/Y info from off the Flash stage and create vars to be used by the Flash movie to move the "orb" in relation to the cursor position. For some reason, FF and Chrome on PC fall short here.

I've tried everything from setting the Flash movie to "opaque" and positioning a transparent DIV over it, all to no avail.

Any thoughts on this? Has anyone encountered something like this?

Example here:

http://anthrograph.com/yarbyarb/thang/

We were given the compiled SWF with the listeners setup, but as of now, I do not have access to the FLA to make changes.

Thank you!


i tried in chrome and firefox, when mouse is on html part, positioning is working, while mouse is on flash it is not working.

if i understand, easiest solution is for window mode, you should make a displayObject, a sprite and set it to belove everything else with alpha = 0, with this you can set window mode anything you like.

other then, you should add Listener to MouseLeave and MouseMove to detect when listen javascript or actionscript.

there is another error, you should mask your buttons that right side. they are under other graphic but mouse_over is working when it should not. For this use ROLL_OVER instead of MOUSE_OVER.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜