<?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: Understanding the Flex SystemManager</title>
	<atom:link href="http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/feed/" rel="self" type="application/rss+xml" />
	<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=understanding-the-flex-systemmanager</link>
	<description>//the blog of Paul Taylor</description>
	<lastBuildDate>Tue, 24 Apr 2012 02:07:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Venkat Loganathan</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-1338</link>
		<dc:creator>Venkat Loganathan</dc:creator>
		<pubDate>Mon, 06 Jun 2011 12:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-1338</guid>
		<description>Hi Paul,

Really confused with this point

Once all the code for the movie is loaded, SystemManager creates your actual Application instance and calls initialize().

I&#039;m under the impression initialize() is part of addChild()--&gt;$childAdded()

Could you please explain?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Really confused with this point</p>
<p>Once all the code for the movie is loaded, SystemManager creates your actual Application instance and calls initialize().</p>
<p>I&#8217;m under the impression initialize() is part of addChild()&#8211;&gt;$childAdded()</p>
<p>Could you please explain?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-1256</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sat, 26 Feb 2011 10:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-1256</guid>
		<description>Hi Paul

great introduction - short and very helpful!

Many thanks for sharing 
Marc</description>
		<content:encoded><![CDATA[<p>Hi Paul</p>
<p>great introduction &#8211; short and very helpful!</p>
<p>Many thanks for sharing<br />
Marc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phineas</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-612</link>
		<dc:creator>Phineas</dc:creator>
		<pubDate>Fri, 06 Aug 2010 18:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-612</guid>
		<description>Understood, all is well. 
Thanks again!</description>
		<content:encoded><![CDATA[<p>Understood, all is well.<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Taylor</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-611</link>
		<dc:creator>Paul Taylor</dc:creator>
		<pubDate>Thu, 05 Aug 2010 22:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-611</guid>
		<description>Pretty much. If you still want mxmlc to generate code for your system manager (it overrides the create() method and specifies which RSLS to load and which application class to instantiate) you should do what you&#039;re thinking of (subclass Application, override [Frame], then subclass that again).
If you have a system manager implementation and don&#039;t want mxmlc to use it as a factory, you can put it in the (assuming you&#039;re using MXML) &lt;fx:Metadata/&gt; definition. If the frame tag is on your Application implementation, mxmlc won&#039;t subclass/generate the code for you. That only means you have to override clone() yourself.</description>
		<content:encoded><![CDATA[<p>Pretty much. If you still want mxmlc to generate code for your system manager (it overrides the create() method and specifies which RSLS to load and which application class to instantiate) you should do what you&#8217;re thinking of (subclass Application, override [Frame], then subclass that again).<br />
If you have a system manager implementation and don&#8217;t want mxmlc to use it as a factory, you can put it in the (assuming you&#8217;re using MXML) <fx:metadata /> definition. If the frame tag is on your Application implementation, mxmlc won&#8217;t subclass/generate the code for you. That only means you have to override clone() yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phineas</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-610</link>
		<dc:creator>Phineas</dc:creator>
		<pubDate>Thu, 05 Aug 2010 21:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-610</guid>
		<description>Great, that&#039;s in line with what I thought.  

One more (hopefully) quick yes/no question... To improve on the logic in PopupManager, I&#039;m going to extend SystemManager. and register my own subclass of PopupManagerImpl.  I&#039;ll also subclass mx.core.Application as MyApplication, add the [Frame] metadata for my own SystemManager, and use MyApplication as the base class for my App&#039;s entry point.  So far so good, yeah?

Now, What about AIR?  AIR entry points typically extend WindowedApplication, which has no [Frame] metadata in it, since it extends Application.  How do I get my AIR app to use my custom SystemManager?  Simple subclass WindowedApplication and add the meta data there?  I&#039;d assume yes, but want to be doubly sure.

ps: Thanks for that fast response!</description>
		<content:encoded><![CDATA[<p>Great, that&#8217;s in line with what I thought.  </p>
<p>One more (hopefully) quick yes/no question&#8230; To improve on the logic in PopupManager, I&#8217;m going to extend SystemManager. and register my own subclass of PopupManagerImpl.  I&#8217;ll also subclass mx.core.Application as MyApplication, add the [Frame] metadata for my own SystemManager, and use MyApplication as the base class for my App&#8217;s entry point.  So far so good, yeah?</p>
<p>Now, What about AIR?  AIR entry points typically extend WindowedApplication, which has no [Frame] metadata in it, since it extends Application.  How do I get my AIR app to use my custom SystemManager?  Simple subclass WindowedApplication and add the meta data there?  I&#8217;d assume yes, but want to be doubly sure.</p>
<p>ps: Thanks for that fast response!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Taylor</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-609</link>
		<dc:creator>Paul Taylor</dc:creator>
		<pubDate>Thu, 05 Aug 2010 21:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-609</guid>
		<description>Phineas
1. Here&#039;s one that I wrote for Reflex: http://github.com/guyinthechair/reflex/blob/master/src/reflex/tools/flashbuilder/ReflexApplicationLoader.as#L20
It has some references to classes in my Reflex fork, but you can easily remove those. To use it, simply add [Frame(factoryClass=&quot;reflex.tools.flashbuilder.ReflexApplicationLoader&quot;)] above the class definition of your Document class (example here: http://github.com/guyinthechair/reflex/blob/master/src/reflex/components/Application.as#L12 )

2. No matter what, you have to compile with mxmlc, but that doesn&#039;t mean you&#039;re compiling the Flex framework into your application. Mxmlc is just the mxml and as3 compiler. If you use binding in MXML classes, yes mxmlc will generate AS3 which uses the Flex framework&#039;s binding code. Fortunately that only compiles in a small part of the larger framework. If you don&#039;t like relying on Flex&#039;s binding classes, you can write your own. To use them, you&#039;ll have to download the mxmlc project and modify the Apache Velocity template files which define how mxmlc should translate the MXML to AS3.</description>
		<content:encoded><![CDATA[<p>Phineas<br />
1. Here&#8217;s one that I wrote for Reflex: <a href="http://github.com/guyinthechair/reflex/blob/master/src/reflex/tools/flashbuilder/ReflexApplicationLoader.as#L20" rel="nofollow">http://github.com/guyinthechair/reflex/blob/master/src/reflex/tools/flashbuilder/ReflexApplicationLoader.as#L20</a><br />
It has some references to classes in my Reflex fork, but you can easily remove those. To use it, simply add [Frame(factoryClass="reflex.tools.flashbuilder.ReflexApplicationLoader")] above the class definition of your Document class (example here: <a href="http://github.com/guyinthechair/reflex/blob/master/src/reflex/components/Application.as#L12" rel="nofollow">http://github.com/guyinthechair/reflex/blob/master/src/reflex/components/Application.as#L12</a> )</p>
<p>2. No matter what, you have to compile with mxmlc, but that doesn&#8217;t mean you&#8217;re compiling the Flex framework into your application. Mxmlc is just the mxml and as3 compiler. If you use binding in MXML classes, yes mxmlc will generate AS3 which uses the Flex framework&#8217;s binding code. Fortunately that only compiles in a small part of the larger framework. If you don&#8217;t like relying on Flex&#8217;s binding classes, you can write your own. To use them, you&#8217;ll have to download the mxmlc project and modify the Apache Velocity template files which define how mxmlc should translate the MXML to AS3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phineas</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-608</link>
		<dc:creator>Phineas</dc:creator>
		<pubDate>Thu, 05 Aug 2010 20:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-608</guid>
		<description>Hey this was a fantastic read. really. More helpful than you know.   I do have a question on where you say the following: 
&quot;[...] to write an app with zero dependence on the Flex framework [...]  You can write an Application based on Sprite, write your own stripped down version of the SystemManager, and then write MXML and take advantage of Flex’s bindings and generated code.&quot;

Can you elaborate on this a bit?   I have been trying to figure this out.
1- How exactly would you strip down the SysMgr?
2- If you lose the dependency on the Flex framework, how can you write MXML and use binding?  Will you not compile with MXMLC at the end of the day? and will your final swf not include the SWF?  

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey this was a fantastic read. really. More helpful than you know.   I do have a question on where you say the following:<br />
&#8220;[...] to write an app with zero dependence on the Flex framework [...]  You can write an Application based on Sprite, write your own stripped down version of the SystemManager, and then write MXML and take advantage of Flex’s bindings and generated code.&#8221;</p>
<p>Can you elaborate on this a bit?   I have been trying to figure this out.<br />
1- How exactly would you strip down the SysMgr?<br />
2- If you lose the dependency on the Flex framework, how can you write MXML and use binding?  Will you not compile with MXMLC at the end of the day? and will your final swf not include the SWF?  </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NIKHIL</title>
		<link>http://guyinthechair.com/2010/01/understanding-the-flex-systemmanager/comment-page-1/#comment-542</link>
		<dc:creator>NIKHIL</dc:creator>
		<pubDate>Thu, 24 Jun 2010 18:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://guyinthechair.com/?p=113#comment-542</guid>
		<description>AWESOME!!  I was struggling hard to understand this concept and really wanted to understand this. Thanks!!
Can you also explain as to what happens after this.. like on user interaction how does flash re-renders the frame or something on flex app lifecycle.</description>
		<content:encoded><![CDATA[<p>AWESOME!!  I was struggling hard to understand this concept and really wanted to understand this. Thanks!!<br />
Can you also explain as to what happens after this.. like on user interaction how does flash re-renders the frame or something on flex app lifecycle.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

