<?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: AS3: Custom Events</title>
	<atom:link href="http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/feed/" rel="self" type="application/rss+xml" />
	<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/</link>
	<description>Learn &#38; Interact with the ActionScript World</description>
	<lastBuildDate>Wed, 17 Mar 2010 15:44:17 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Passing Arguments with CustomEvents &#124; Andy D</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3643</link>
		<dc:creator>Passing Arguments with CustomEvents &#124; Andy D</dc:creator>
		<pubDate>Sun, 16 Aug 2009 07:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3643</guid>
		<description>[...] good examples; 1. http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/ 2. http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/    Categories: Uncategorized Tags: ActionScript        Comments (0) Trackbacks (0) Leave a comment [...]</description>
		<content:encoded><![CDATA[<p>[...] good examples; 1. <a href="http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/" rel="nofollow">http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/</a> 2. <a href="http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/" rel="nofollow">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/</a>    Categories: Uncategorized Tags: ActionScript        Comments (0) Trackbacks (0) Leave a comment [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubrey Taylor</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3625</link>
		<dc:creator>Aubrey Taylor</dc:creator>
		<pubDate>Wed, 05 Aug 2009 19:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3625</guid>
		<description>You&#039;re right, probably not the most &quot;purist&quot; solution ever. But at least its not a generic object, haha. VO is really simple and I can just pass it in. When I have more than 2 weeks and one shot to build something I will do it the &quot;proper&quot; way. ^_^</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, probably not the most &#8220;purist&#8221; solution ever. But at least its not a generic object, haha. VO is really simple and I can just pass it in. When I have more than 2 weeks and one shot to build something I will do it the &#8220;proper&#8221; way. ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3608</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Sat, 25 Jul 2009 14:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3608</guid>
		<description>oh and i use VOs all the time, probably one of the two useful things I picked up while being forced to use cairngorm a while back (what a mess that framework is).</description>
		<content:encoded><![CDATA[<p>oh and i use VOs all the time, probably one of the two useful things I picked up while being forced to use cairngorm a while back (what a mess that framework is).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3607</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Sat, 25 Jul 2009 14:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3607</guid>
		<description>@Aubrey: That is certainly one way to get around the auto completion.  while its a good solution (if you want the AC in FDT) purists will probably argue that its not the way it should be done.  i&#039;m not a purist so if that makes you happy and works for you, then why not? :P  and thanks for the kind words, its really appreciated and glad i could help.</description>
		<content:encoded><![CDATA[<p>@Aubrey: That is certainly one way to get around the auto completion.  while its a good solution (if you want the AC in FDT) purists will probably argue that its not the way it should be done.  i&#8217;m not a purist so if that makes you happy and works for you, then why not? <img src='http://evolve.reintroducing.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />   and thanks for the kind words, its really appreciated and glad i could help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubrey Taylor</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3606</link>
		<dc:creator>Aubrey Taylor</dc:creator>
		<pubDate>Sat, 25 Jul 2009 08:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3606</guid>
		<description>Also. Wanted to say thanks for the template. Came across this page quite awhile ago. Not only was it really handy for creating custom events, it also helped me understand the whole concept in as3 much more clearly.

So thanks! ^_^</description>
		<content:encoded><![CDATA[<p>Also. Wanted to say thanks for the template. Came across this page quite awhile ago. Not only was it really handy for creating custom events, it also helped me understand the whole concept in as3 much more clearly.</p>
<p>So thanks! ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubrey Taylor</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3605</link>
		<dc:creator>Aubrey Taylor</dc:creator>
		<pubDate>Sat, 25 Jul 2009 08:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3605</guid>
		<description>Sorry if I&#039;m repeating something someones already said here, but I was interested in the debate between the generic object and strong typing parameters.

My solution to this so far is to use a generic params:Object, but populate it with a simple value object that I create.

So:

public class SimpleCustomVO
{
 // class members
 public var prop1:String
 public var prop2:String
 public var prop3:Array
}

And then:

public function someEventDispatched():void
{
 var params:SimpleCustomVO = new SimpleCustomVO();
 params.prop1 = &quot;foo&quot;;
 params.prop2 = &quot;bar&quot;;
 params.prop3 = [&quot;foo&quot;, &quot;bar&quot;]
 
 dispatchEvent(new CustomEvent(CustomEvent.TYPE, params);
}

When I catch the event, I can go back and strong type the params object to my SimpleCustomVO like so:

protected function customEventListener( e : CustomEvent ):void
{
 var simpleCustomVO:SimpleCustomVO = e.params as SimpleCustomVO;

 var str:String = simpleCustomVO.prop1;
}

In FDT, now we can use a generic object and still get auto-complete. WHee!</description>
		<content:encoded><![CDATA[<p>Sorry if I&#8217;m repeating something someones already said here, but I was interested in the debate between the generic object and strong typing parameters.</p>
<p>My solution to this so far is to use a generic params:Object, but populate it with a simple value object that I create.</p>
<p>So:</p>
<p>public class SimpleCustomVO<br />
{<br />
 // class members<br />
 public var prop1:String<br />
 public var prop2:String<br />
 public var prop3:Array<br />
}</p>
<p>And then:</p>
<p>public function someEventDispatched():void<br />
{<br />
 var params:SimpleCustomVO = new SimpleCustomVO();<br />
 params.prop1 = &#8220;foo&#8221;;<br />
 params.prop2 = &#8220;bar&#8221;;<br />
 params.prop3 = ["foo", "bar"]</p>
<p> dispatchEvent(new CustomEvent(CustomEvent.TYPE, params);<br />
}</p>
<p>When I catch the event, I can go back and strong type the params object to my SimpleCustomVO like so:</p>
<p>protected function customEventListener( e : CustomEvent ):void<br />
{<br />
 var simpleCustomVO:SimpleCustomVO = e.params as SimpleCustomVO;</p>
<p> var str:String = simpleCustomVO.prop1;<br />
}</p>
<p>In FDT, now we can use a generic object and still get auto-complete. WHee!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Custom events in AS3 &#171; Actionscript AS3 Flash XML</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-3383</link>
		<dc:creator>Custom events in AS3 &#171; Actionscript AS3 Flash XML</dc:creator>
		<pubDate>Fri, 17 Apr 2009 18:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-3383</guid>
		<description>[...] http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/" rel="nofollow">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dispatching custom events across objects in ActionScript 3 &#124; Calculating Infinity</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-2794</link>
		<dc:creator>Dispatching custom events across objects in ActionScript 3 &#124; Calculating Infinity</dc:creator>
		<pubDate>Mon, 09 Feb 2009 22:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-2794</guid>
		<description>[...] share the one I came up with recently for a project I&#8217;m currently working on. There are several excellent articles that should get you up and running with the idea of custom events, here&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] share the one I came up with recently for a project I&#8217;m currently working on. There are several excellent articles that should get you up and running with the idea of custom events, here&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-2744</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Tue, 27 Jan 2009 15:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-2744</guid>
		<description>lol clarklin, i&#039;m no sensei, but glad it helped.  good luck.</description>
		<content:encoded><![CDATA[<p>lol clarklin, i&#8217;m no sensei, but glad it helped.  good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clarklin</title>
		<link>http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/comment-page-1/#comment-2743</link>
		<dc:creator>clarklin</dc:creator>
		<pubDate>Tue, 27 Jan 2009 06:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2007/10/23/as3/as3-custom-events/#comment-2743</guid>
		<description>Hey matt 
thanks for this, i&#039;m gonna work through this, i get it now, just need to set it in concrete, 
Everybody, Matt is a very helpful person he is a Custom Events Sensei. with this last post, everyone should understand how it works. 
thank you
clark</description>
		<content:encoded><![CDATA[<p>Hey matt<br />
thanks for this, i&#8217;m gonna work through this, i get it now, just need to set it in concrete,<br />
Everybody, Matt is a very helpful person he is a Custom Events Sensei. with this last post, everyone should understand how it works.<br />
thank you<br />
clark</p>
]]></content:encoded>
	</item>
</channel>
</rss>
