<?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: Mouse Events update</title>
	<atom:link href="http://www.ffilmation.org/website/2008/05/13/mouse-events-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ffilmation.org/website/2008/05/13/mouse-events-update/</link>
	<description>Opensource AS3 Isometric Engine</description>
	<lastBuildDate>Thu, 12 May 2011 21:52:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Michael Lawrence</title>
		<link>http://www.ffilmation.org/website/2008/05/13/mouse-events-update/comment-page-1/#comment-246</link>
		<dc:creator>Michael Lawrence</dc:creator>
		<pubDate>Mon, 07 Jul 2008 17:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ffilmation.org/website/?p=44#comment-246</guid>
		<description>Thanks a ton for the quick response! Yep, I&#039;m using the latest SVN source. I&#039;ll give it a try. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks a ton for the quick response! Yep, I&#8217;m using the latest SVN source. I&#8217;ll give it a try. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.ffilmation.org/website/2008/05/13/mouse-events-update/comment-page-1/#comment-238</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 04 Jul 2008 09:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ffilmation.org/website/?p=44#comment-238</guid>
		<description>Hi Michael,

I assume your are using the latest sources from SVN, otherwise it will possibly not work: If you want to add a Mouse Event to an Element, use its .container property.

Due to the complex nature of AS3 events, I had to disable events in all Sprites in the hierarchy but the .container, so you know where to capture your events. Your code should go like this:

private function sceneLoaded(e:Event):void {
for each(var o:fObject in this.scene.objects)
o.container.addEventListener(MouseEvent.CLICK, this.objectClick);
}


This will be documented in the next release, that I plan to do during the weekend.

Best,</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>I assume your are using the latest sources from SVN, otherwise it will possibly not work: If you want to add a Mouse Event to an Element, use its .container property.</p>
<p>Due to the complex nature of AS3 events, I had to disable events in all Sprites in the hierarchy but the .container, so you know where to capture your events. Your code should go like this:</p>
<p>private function sceneLoaded(e:Event):void {<br />
for each(var o:fObject in this.scene.objects)<br />
o.container.addEventListener(MouseEvent.CLICK, this.objectClick);<br />
}</p>
<p>This will be documented in the next release, that I plan to do during the weekend.</p>
<p>Best,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Lawrence</title>
		<link>http://www.ffilmation.org/website/2008/05/13/mouse-events-update/comment-page-1/#comment-237</link>
		<dc:creator>Michael Lawrence</dc:creator>
		<pubDate>Thu, 03 Jul 2008 21:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ffilmation.org/website/?p=44#comment-237</guid>
		<description>How exactly do I apply a mouse event to an object that has been loaded via an XML Scene? For instance, once my scene has been loaded I tried the following code and it did not work:

private function sceneLoaded(e:Event):void {
	for each(var o:fObject in this.scene.objects)
		o.flashClip.addEventListener(MouseEvent.CLICK, 	this.objectClick);
}

private function objectClick(e:MouseEvent):void {
	trace(&quot;click&quot;);
}




What am I doing wrong? I&#039;m trying to apply a mouse click to every object in the scene and it doesn&#039;t seem to work. When I click the objects in the scene, nothing happens.</description>
		<content:encoded><![CDATA[<p>How exactly do I apply a mouse event to an object that has been loaded via an XML Scene? For instance, once my scene has been loaded I tried the following code and it did not work:</p>
<p>private function sceneLoaded(e:Event):void {<br />
	for each(var o:fObject in this.scene.objects)<br />
		o.flashClip.addEventListener(MouseEvent.CLICK, 	this.objectClick);<br />
}</p>
<p>private function objectClick(e:MouseEvent):void {<br />
	trace(&#8220;click&#8221;);<br />
}</p>
<p>What am I doing wrong? I&#8217;m trying to apply a mouse click to every object in the scene and it doesn&#8217;t seem to work. When I click the objects in the scene, nothing happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.ffilmation.org/website/2008/05/13/mouse-events-update/comment-page-1/#comment-201</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 14 May 2008 16:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ffilmation.org/website/?p=44#comment-201</guid>
		<description>Hey, love the work but am having trouble running My name is poncho.  I&#039;ve download the latest version and updated my code from the SVN.  My compiler throws me about 20 warning all saying &quot;Warning: Scatter0_Obj18 extends out of bounds.&quot; and I can&#039;t get out of the main room since when I mouse over the doors the interactivity you&#039;ve added since the previous version does not seem to be work.  Hopefully you can help me out.  Either way, awesome project, keep up the good work.</description>
		<content:encoded><![CDATA[<p>Hey, love the work but am having trouble running My name is poncho.  I&#8217;ve download the latest version and updated my code from the SVN.  My compiler throws me about 20 warning all saying &#8220;Warning: Scatter0_Obj18 extends out of bounds.&#8221; and I can&#8217;t get out of the main room since when I mouse over the doors the interactivity you&#8217;ve added since the previous version does not seem to be work.  Hopefully you can help me out.  Either way, awesome project, keep up the good work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

