I am working on interactive flash maps, where I like to let the
mousewheel control the map zoom when the map is in use, similar to
Google Maps. AS2 versions worked fine. But AS3 has focus problems,
here is a finished example showing Bars of Philadelphia:
http://www.centercityphila.org/life/Guide.php?b4=75;
The issue is the mouse wheel now scrolls the whole page even when the
flash element is on focus. So when using the mouse wheel to zoom in/
out of the map, you will also scroll the web page itself (this page
scroll will be visible if you set your browser window short enough to
get a horizontal scroll bar). This flash scroll + web page scroll at
the same time is strange to me and should be able to be controlled.
For example, when scrolling the textfield, the mousewheel performs the
scroll without scrolling the page, until it reaches the top or the
bottom, then the textfield freezes and scroll returns to the web page
+ map.
In short: why should AS3 flash embedding be different than AS2 flash
embedding when it comes to browser page mouse wheel event behavior? Is
that something that can be controlled through better "focus" settings
in the actionscript itself? Or through Swfobject?
Here's a quick comparison of AS2 vs AS3 illustrating the problem
(without swfobject).
http://www.geocentriclabs.com/as-scroll/
I am looking for a method to keep the web page from moving when the
user is mouse wheeling on the flash, either through tweaks to AS code,
Swfobject, or external web page javascript hackery.