Skip to main content
Participant
July 26, 2006
Question

Flash aware of mouse outside the SWF?

  • July 26, 2006
  • 6 replies
  • 524 views
I want to vertically sandwich an XHTML/CSS drop-down navbar in between two SWFs, but I want movie clips in each of the SWFs to track with the mouse as the mouse moves over the navbar. My guess, however, is that there is no way for the SWF to know where the mouse if it's not on top of one of the SWFs. Is this true?

I am asking this because currently my entire website (www.youngchurch.org) is XHTML/CSS (no flash) and I'd like to keep everything but the header that way. However, I want SWFs with moving movie clips above and below the XHTML navbar. I'm new to flash, so I'm not sure how to do this. I'd really appreciate any help you can give.
This topic has been closed for replies.

6 replies

kglad
Community Expert
Community Expert
July 29, 2006
your link works for me with both maxthon and ie 6. what browser are you using?
gracempAuthor
Participant
July 29, 2006
It does NOT work in Firefox 1.5 on Windows or a Mac or Safari 1.3 on a Mac. It does work in Safari 2.0 on a Mac and IE 6 (on Windows). Any ideas why?
kglad
Community Expert
Community Expert
July 29, 2006
yes, different browsers interpret javascript in different ways. there's also some variation in the way the flash player performs in the mac os vs windows. but the main issue is javascript and browser differences.
gracempAuthor
Participant
July 29, 2006
No, it's not working:

http://www.youngchurch.org/newnav/mouseCapture/mouseCaptureToFlash.html

Any ideas?

Thank you for your help, by the way.
kglad
Community Expert
Community Expert
July 29, 2006
put all the files in the same directory and open mouseCaptureToFlash.html in your browser. does it work?
gracempAuthor
Participant
July 28, 2006
Thanks kglad. Are there any instructions anywhere for using urami's files? His movie does not appear to be working for me.
kglad
Community Expert
Community Expert
July 27, 2006
here's a sample from urami:

www.gladstien.com/new/mouseCapture.zip
kglad
Community Expert
Community Expert
July 27, 2006
your swf can communicate with javascript and javascript can detect and report the mouse's position anywhere in the browser window.
gracempAuthor
Participant
July 27, 2006
quote:

Originally posted by: kglad
your swf can communicate with javascript and javascript can detect and report the mouse's position anywhere in the browser window.


That's great! I've only used javascript a couple times; could someone point me to some good resources that would help me solve this particular problem using flash & javascript?