<?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: MouseEvent.ROLL_OUT troubles</title>
	<atom:link href="http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 15:14:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Atimoda</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-18341</link>
		<dc:creator>Atimoda</dc:creator>
		<pubDate>Thu, 10 Sep 2009 14:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-18341</guid>
		<description>Great solution, Marco/Ian.
I&#039;m using it right now on my project. Thanks ;)</description>
		<content:encoded><![CDATA[<p>Great solution, Marco/Ian.<br />
I&#8217;m using it right now on my project. Thanks <img src='http://blog.powerupmedia.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-15327</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 26 Feb 2009 23:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-15327</guid>
		<description>Marco,

your solution is perfect!! I&#039;ve adapted it, so that no related object will fire the mouse event:

var isValidRollOut:Boolean=false;
try {
	isValidRollOut = (e.relatedObject.name == &quot;any_object&quot;) ? false : false;
} catch (e:Error) {
	isValidRollOut=true;
}
if (isValidRollOut) {
	do something
}</description>
		<content:encoded><![CDATA[<p>Marco,</p>
<p>your solution is perfect!! I&#8217;ve adapted it, so that no related object will fire the mouse event:</p>
<p>var isValidRollOut:Boolean=false;<br />
try {<br />
	isValidRollOut = (e.relatedObject.name == &#8220;any_object&#8221;) ? false : false;<br />
} catch (e:Error) {<br />
	isValidRollOut=true;<br />
}<br />
if (isValidRollOut) {<br />
	do something<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-14389</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Mon, 19 Jan 2009 14:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-14389</guid>
		<description>NickZA,

If you don&#039;t want the green rectangle to fire a MouseEvent.ROLL_OUT event when the mouse is over the green rectangle and you roll over the blue oval, you could use this event handler for the green rectangle&#039;s MouseEvent.ROLL_OUT:

function onRollOutGreenRectangle(mouseEvent:MouseEvent):void
{
     trace (mouseEvent.target.name) //-- Returns instance name of green rectangle
     trace (mouseEvent.relatedObject.name) //-- Returns instance name of blue oval
     
     // Let&#039;s say the blue Oval instance name is &quot;myBlueOvalInstanceName&quot;

     var isValidRollOut:Boolean = (mouseEvent.relatedObject.name == &quot;myBlueOvalInstanceName&quot;) ? false : true;
     
     if(isValidRollOut)
     {
          trace (&quot;mouse rolled out of green rectangle, but not because of a roll over on blue oval&quot;)
     }
}

This is just an example to show you the difference between MouseEvent.relatedObject et MouseEvent.target. I hope it helps someone...</description>
		<content:encoded><![CDATA[<p>NickZA,</p>
<p>If you don&#8217;t want the green rectangle to fire a MouseEvent.ROLL_OUT event when the mouse is over the green rectangle and you roll over the blue oval, you could use this event handler for the green rectangle&#8217;s MouseEvent.ROLL_OUT:</p>
<p>function onRollOutGreenRectangle(mouseEvent:MouseEvent):void<br />
{<br />
     trace (mouseEvent.target.name) //&#8211; Returns instance name of green rectangle<br />
     trace (mouseEvent.relatedObject.name) //&#8211; Returns instance name of blue oval</p>
<p>     // Let&#8217;s say the blue Oval instance name is &#8220;myBlueOvalInstanceName&#8221;</p>
<p>     var isValidRollOut:Boolean = (mouseEvent.relatedObject.name == &#8220;myBlueOvalInstanceName&#8221;) ? false : true;</p>
<p>     if(isValidRollOut)<br />
     {<br />
          trace (&#8220;mouse rolled out of green rectangle, but not because of a roll over on blue oval&#8221;)<br />
     }<br />
}</p>
<p>This is just an example to show you the difference between MouseEvent.relatedObject et MouseEvent.target. I hope it helps someone&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NickZA</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-14331</link>
		<dc:creator>NickZA</dc:creator>
		<pubDate>Sat, 17 Jan 2009 10:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-14331</guid>
		<description>Marco,

I think you are referring to event.target?

function someMouseEventHandler(event:Event)
{
     trace(event.target);
}

Hope that helps someone...</description>
		<content:encoded><![CDATA[<p>Marco,</p>
<p>I think you are referring to event.target?</p>
<p>function someMouseEventHandler(event:Event)<br />
{<br />
     trace(event.target);<br />
}</p>
<p>Hope that helps someone&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-7807</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Fri, 29 Aug 2008 10:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-7807</guid>
		<description>have you found a solution in the meantime? I have a similar situation where I want both movieclips (blue and green) to catch both the rollOver event when the mouse is on the overlapping portion..</description>
		<content:encoded><![CDATA[<p>have you found a solution in the meantime? I have a similar situation where I want both movieclips (blue and green) to catch both the rollOver event when the mouse is on the overlapping portion..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-6016</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 17 Jul 2008 03:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-6016</guid>
		<description>Ok i got it...

For example, if you want to have both shapes interactive and prevent green rectange&#039;s MouseEvent.ROLL_OUT from being triggered when you roll over the &#039;overlaying&#039; part of the blue oval, you can use:

MouseEvent.relatedObject

in green rectangle&#039;s MouseEvent.ROLL_OUT associated function, using the mouseEvent parameter of that function.

This is my first ever post on AS and I speak French, so sorry if i&#039;m not clear :(...</description>
		<content:encoded><![CDATA[<p>Ok i got it&#8230;</p>
<p>For example, if you want to have both shapes interactive and prevent green rectange&#8217;s MouseEvent.ROLL_OUT from being triggered when you roll over the &#8216;overlaying&#8217; part of the blue oval, you can use:</p>
<p>MouseEvent.relatedObject</p>
<p>in green rectangle&#8217;s MouseEvent.ROLL_OUT associated function, using the mouseEvent parameter of that function.</p>
<p>This is my first ever post on AS and I speak French, so sorry if i&#8217;m not clear <img src='http://blog.powerupmedia.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-6006</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Wed, 16 Jul 2008 18:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-6006</guid>
		<description>Yeah, i want to know too... what if the blue oval needs interaction?

Thanks</description>
		<content:encoded><![CDATA[<p>Yeah, i want to know too&#8230; what if the blue oval needs interaction?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bveb</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-5277</link>
		<dc:creator>bveb</dc:creator>
		<pubDate>Wed, 30 Apr 2008 12:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-5277</guid>
		<description>If we have to interact oval shape.. For example we want to drag oval to rectangle and create some visual feedback on rectangle( color change for example)</description>
		<content:encoded><![CDATA[<p>If we have to interact oval shape.. For example we want to drag oval to rectangle and create some visual feedback on rectangle( color change for example)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michiel</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-4983</link>
		<dc:creator>michiel</dc:creator>
		<pubDate>Wed, 16 Apr 2008 11:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-4983</guid>
		<description>leuk dit...

maar ik heb zelfde probleem alleen heb alle bij de clips nodig voor mouseEnable....... 

ik heb dit

container met daarin movies
--------------------------------
&#124;     _                                &#124;
&#124;    &#124;_&#124;                              &#124;
&#124;                                      &#124;
&#124;                                      &#124;
--------------------------------

als ik alleen de container wil triggeen dan wordt deze ook actief zodra je over de movies inside de container gaat maar dat wil ik niet!</description>
		<content:encoded><![CDATA[<p>leuk dit&#8230;</p>
<p>maar ik heb zelfde probleem alleen heb alle bij de clips nodig voor mouseEnable&#8230;&#8230;. </p>
<p>ik heb dit</p>
<p>container met daarin movies<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|     _                                |<br />
|    |_|                              |<br />
|                                      |<br />
|                                      |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>als ik alleen de container wil triggeen dan wordt deze ook actief zodra je over de movies inside de container gaat maar dat wil ik niet!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno van Oordt</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-4441</link>
		<dc:creator>Arno van Oordt</dc:creator>
		<pubDate>Wed, 26 Mar 2008 11:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-4441</guid>
		<description>THAT&#039;S IT!!! Brilliant! I knew I overlooked a property.

Many thanks!

I hope this helps others as well...</description>
		<content:encoded><![CDATA[<p>THAT&#8217;S IT!!! Brilliant! I knew I overlooked a property.</p>
<p>Many thanks!</p>
<p>I hope this helps others as well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mariano cigliano</title>
		<link>http://blog.powerupmedia.nl/2008/03/26/mouseeventroll_out-troubles/comment-page-1/#comment-4440</link>
		<dc:creator>mariano cigliano</dc:creator>
		<pubDate>Wed, 26 Mar 2008 10:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/2008/03/26/mouseeventroll_out-troubles/#comment-4440</guid>
		<description>Hi Arno.
If you don&#039;t need mouse interaction with oval you can just set it mouseEnabled property to false:)

In your code: just
this.clip2.mouseEnabled = false;
instead of
this.clip2.enabled = false;

Hope it could be helpful :)
Mariano</description>
		<content:encoded><![CDATA[<p>Hi Arno.<br />
If you don&#8217;t need mouse interaction with oval you can just set it mouseEnabled property to false:)</p>
<p>In your code: just<br />
this.clip2.mouseEnabled = false;<br />
instead of<br />
this.clip2.enabled = false;</p>
<p>Hope it could be helpful <img src='http://blog.powerupmedia.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Mariano</p>
]]></content:encoded>
	</item>
</channel>
</rss>
