mouse wheel scrolls web page instead of flash

65 views
Skip to first unread message

geocentric

unread,
Jul 11, 2008, 9:44:52 AM7/11/08
to SWFObject
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.

Getify Solutions, Inc.

unread,
Jul 11, 2008, 9:50:51 AM7/11/08
to swfo...@googlegroups.com
Just a quick note... you might check your wmode settings... At this point,
I'm recommending to everyone to steer clear of wmode all together, as it
just causes way too many different bugs. I know in particular that wmode
has been proven to cause some issues with mouse-event trapping. Just
something to consider.

--Kyle


--------------------------------------------------
From: "geocentric" <jim.bl...@geocentric.com>
Sent: Friday, July 11, 2008 8:44 AM
To: "SWFObject" <swfo...@googlegroups.com>
Subject: mouse wheel scrolls web page instead of flash

geocentric

unread,
Jul 11, 2008, 11:59:47 AM7/11/08
to SWFObject
I can report:

wmode=window or avoiding altogether --> Flash and Page BOTH Scroll
wmode=opaque or wmode=transparent --> Page Scrolls, Flash does not

in FF 3.

Still need just Flash to scroll, not Page, as in AS2.

On Jul 11, 9:50 am, "Getify Solutions, Inc." <get...@gmail.com> wrote:
> Just a quick note... you might check your wmode settings... At this point,
> I'm recommending to everyone to steer clear of wmode all together, as it
> just causes way too many different bugs.  I know in particular that wmode
> has been proven to cause some issues with mouse-event trapping.  Just
> something to consider.
>
> --Kyle
>
> --------------------------------------------------
> From: "geocentric" <jim.blakes...@geocentric.com>

Getify Solutions

unread,
Jul 11, 2008, 12:16:27 PM7/11/08
to swfo...@googlegroups.com
have you tried in any other browser? There are also a number of FF3 bugs
related to flash... this could be one of them, or even a new one... did you
try it in FF2?

--Kyle


--------------------------------------------------
From: "geocentric" <jim.bl...@geocentric.com>
Sent: Friday, July 11, 2008 10:59 AM
To: "SWFObject" <swfo...@googlegroups.com>
Subject: Re: mouse wheel scrolls web page instead of flash

geocentric

unread,
Jul 16, 2008, 12:32:51 PM7/16/08
to SWFObject
FF2 same as FF3. Something significant has changed in Flash between
AS2 and AS3, but I don't know how to control for it.

On Jul 11, 12:16 pm, "Getify Solutions" <get...@gmail.com> wrote:
> have you tried in any other browser? There are also a number of FF3 bugs
> related to flash... this could be one of them, or even a new one... did you
> try it in FF2?
>
> --Kyle
>
> --------------------------------------------------

Getify Solutions, Inc.

unread,
Jul 16, 2008, 12:41:42 PM7/16/08
to swfo...@googlegroups.com
Well, yes, quite frankly, almost the entire language changed. However,
unfortunately, this is not an actionscript support list, it's a support list
for SWFObject. You should look into the forums on kirupa.com or
actionscript.org.

--Kyle


--------------------------------------------------
From: "geocentric" <jim.bl...@geocentric.com>
Sent: Wednesday, July 16, 2008 11:32 AM

geocentric

unread,
Jul 18, 2008, 11:46:02 AM7/18/08
to SWFObject
will do, thanks.

On Jul 16, 12:41 pm, "Getify Solutions, Inc." <get...@gmail.com>
wrote:
> Well, yes, quite frankly, almost the entire language changed. However,
> unfortunately, this is not an actionscript support list, it's a support list
> for SWFObject.  You should look into the forums on kirupa.com or
> actionscript.org.
>
> --Kyle
>
> --------------------------------------------------
> From: "geocentric" <jim.blakes...@geocentric.com>
Reply all
Reply to author
Forward
0 new messages