<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MouseWheelTrap &#8211; how to stop simultaneous Flash / browser scrolling in AS3</title>
	<atom:link href="http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/</link>
	<description>part designer. part developer. all creative</description>
	<lastBuildDate>Wed, 07 Jul 2010 23:40:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Liam</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/comment-page-1/#comment-2961</link>
		<dc:creator>Liam</dc:creator>
		<pubDate>Wed, 30 Jun 2010 15:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206#comment-2961</guid>
		<description>Yeah, good point. I think there was I reason I used MOUSE_MOVE instead (probably to do with right-clicking or something). It may be a left over from a stage.frameRate idling thing I did that worked nicely (since this had internal logic to ensure it only updates when necessary).

When I get some time, I&#039;ll test the change and implement it if I can&#039;t break it :) I&#039;ll also format the JavaScript as XML for clarity - thanks for the heads up!</description>
		<content:encoded><![CDATA[<p>Yeah, good point. I think there was I reason I used MOUSE_MOVE instead (probably to do with right-clicking or something). It may be a left over from a stage.frameRate idling thing I did that worked nicely (since this had internal logic to ensure it only updates when necessary).</p>
<p>When I get some time, I&#8217;ll test the change and implement it if I can&#8217;t break it <img src='http://www.spikything.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;ll also format the JavaScript as XML for clarity &#8211; thanks for the heads up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxcc</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/comment-page-1/#comment-2960</link>
		<dc:creator>xxcc</dc:creator>
		<pubDate>Sun, 27 Jun 2010 19:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206#comment-2960</guid>
		<description>Hey there,
it&#039;s really nice solution you posted. Helped me out alot!
However, while testing my flash app (not very optimized and many animations and data processing going on) on various browsers. I&#039;ve noticed that the app lags A LOT in Opera. I first tried to replace eval with xml-formated js, then moved the js eval section of your code to the html header, still no good. Then analyzed the code a little bit closer and changed 
stage.addEventListener(MouseEvent.MOUSE_MOVE, function():void {
to
stage.addEventListener(MouseEvent.MOUSE_OVER, function():void {
It&#039;s completely sufficient to use MOUSE_OVER event type to initiate MouseWheelTrap, since otherwise the flash has to send request to the javascript every single time the cursor moves around. This little correction brings a slight performance boost in IE/FF/Chrome and a HUGE ONE in Opera (v 10.50).
Hope this helps anyone.</description>
		<content:encoded><![CDATA[<p>Hey there,<br />
it&#8217;s really nice solution you posted. Helped me out alot!<br />
However, while testing my flash app (not very optimized and many animations and data processing going on) on various browsers. I&#8217;ve noticed that the app lags A LOT in Opera. I first tried to replace eval with xml-formated js, then moved the js eval section of your code to the html header, still no good. Then analyzed the code a little bit closer and changed<br />
stage.addEventListener(MouseEvent.MOUSE_MOVE, function():void {<br />
to<br />
stage.addEventListener(MouseEvent.MOUSE_OVER, function():void {<br />
It&#8217;s completely sufficient to use MOUSE_OVER event type to initiate MouseWheelTrap, since otherwise the flash has to send request to the javascript every single time the cursor moves around. This little correction brings a slight performance boost in IE/FF/Chrome and a HUGE ONE in Opera (v 10.50).<br />
Hope this helps anyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/comment-page-1/#comment-2956</link>
		<dc:creator>Liam</dc:creator>
		<pubDate>Tue, 22 Jun 2010 15:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206#comment-2956</guid>
		<description>Melmendo, I&#039;d say that could be to do with the fact that Flex builds its children in the background and isn&#039;t actually quite ready when you expect it. If you have a search MouseWheelTrap, I think a few people out there adapted it for better Flex support - I will look into it.</description>
		<content:encoded><![CDATA[<p>Melmendo, I&#8217;d say that could be to do with the fact that Flex builds its children in the background and isn&#8217;t actually quite ready when you expect it. If you have a search MouseWheelTrap, I think a few people out there adapted it for better Flex support &#8211; I will look into it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melmendo</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/comment-page-1/#comment-2954</link>
		<dc:creator>melmendo</dc:creator>
		<pubDate>Wed, 09 Jun 2010 14:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206#comment-2954</guid>
		<description>It works great in firefox and safari. In IE and chrome I must first click on my map (.swf).  Once I do this it works great fine. Could this be a javascript issue?  I&#039;m using flex 3 so the only changes I&#039;ve made were to the addEventListeners.

FROM
mx.core.FlexGlobals.topLevelApplication.addEventListener(MouseEvent.ROLL_OUT, function():void

TO
Application.application.addEventListener(MouseEvent.ROLL_OUT, function():void

sample page (the map at bottom of page) : http://crownpeak.vipnet.org/cmsportal3/

Thanks in advance,
Mark</description>
		<content:encoded><![CDATA[<p>It works great in firefox and safari. In IE and chrome I must first click on my map (.swf).  Once I do this it works great fine. Could this be a javascript issue?  I&#8217;m using flex 3 so the only changes I&#8217;ve made were to the addEventListeners.</p>
<p>FROM<br />
mx.core.FlexGlobals.topLevelApplication.addEventListener(MouseEvent.ROLL_OUT, function():void</p>
<p>TO<br />
Application.application.addEventListener(MouseEvent.ROLL_OUT, function():void</p>
<p>sample page (the map at bottom of page) : <a href="http://crownpeak.vipnet.org/cmsportal3/" rel="nofollow">http://crownpeak.vipnet.org/cmsportal3/</a></p>
<p>Thanks in advance,<br />
Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/comment-page-1/#comment-2952</link>
		<dc:creator>Liam</dc:creator>
		<pubDate>Thu, 29 Apr 2010 10:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206#comment-2952</guid>
		<description>Actually, it does use JavaScript, but the code is injected at runtime by the Flash - which means you still needs scripting access allowed, but at least you don&#039;t need an external JS file too :)

Note that I&#039;ve now hosted the code at http://code.google.com/p/mousewheeltrap/</description>
		<content:encoded><![CDATA[<p>Actually, it does use JavaScript, but the code is injected at runtime by the Flash &#8211; which means you still needs scripting access allowed, but at least you don&#8217;t need an external JS file too <img src='http://www.spikything.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Note that I&#8217;ve now hosted the code at <a href="http://code.google.com/p/mousewheeltrap/" rel="nofollow">http://code.google.com/p/mousewheeltrap/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
