<?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: How to get rid of mx:Script blocks in your MXML</title>
	<atom:link href="http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/feed/" rel="self" type="application/rss+xml" />
	<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/</link>
	<description>Gamedev 2.0</description>
	<lastBuildDate>Mon, 23 Apr 2012 13:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: BrianbishopIreland</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-24621</link>
		<dc:creator>BrianbishopIreland</dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-24621</guid>
		<description>If the values are being referenced in the mxml, they will have to be in {} e.g. {model.currentCard}, and this doesnt allow for ctrl+space for intelliSense anyway. Also, this will compile even when &#039;model&#039; is in a seperate source file, its only a problem if the file is run and the source is not available</description>
		<content:encoded><![CDATA[<p>If the values are being referenced in the mxml, they will have to be in {} e.g. {model.currentCard}, and this doesnt allow for ctrl+space for intelliSense anyway. Also, this will compile even when &#8216;model&#8217; is in a seperate source file, its only a problem if the file is run and the source is not available</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrianbishopIreland</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-24622</link>
		<dc:creator>BrianbishopIreland</dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-24622</guid>
		<description>If the values are being referenced in the mxml, they will have to be in {} e.g. {model.currentCard}, and this doesnt allow for ctrl+space for intelliSense anyway. Also, this will compile even when &#039;model&#039; is in a seperate source file, its only a problem if the file is run and the source is not available</description>
		<content:encoded><![CDATA[<p>If the values are being referenced in the mxml, they will have to be in {} e.g. {model.currentCard}, and this doesnt allow for ctrl+space for intelliSense anyway. Also, this will compile even when &#8216;model&#8217; is in a seperate source file, its only a problem if the file is run and the source is not available</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-24610</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Mon, 11 Oct 2010 10:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-24610</guid>
		<description>I like the concept behind this approach, but how would it work practically?  I mean, any components set out in your mxml aren&#039;t going to be referencable in the as file version, are they?</description>
		<content:encoded><![CDATA[<p>I like the concept behind this approach, but how would it work practically?  I mean, any components set out in your mxml aren&#8217;t going to be referencable in the as file version, are they?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-9128</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Wed, 11 Feb 2009 00:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-9128</guid>
		<description>The contents of the mxml.as file are a cut-n-paste of what you&#039;d normally have between the &lt;mx :Script&gt; blocks.&lt;/mx&gt;</description>
		<content:encoded><![CDATA[<p>The contents of the mxml.as file are a cut-n-paste of what you&#8217;d normally have between the <mx :Script> blocks.</mx></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-9127</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 10 Feb 2009 23:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-9127</guid>
		<description>Thank you! This is exactly what I was looking for, and you are right about this topic being one that isn&#039;t really google friendly!

I haven&#039;t actually tried this yet, but as I read this I&#039;m wondering what the actual code block inside of the mxml.as file is...is it a package?</description>
		<content:encoded><![CDATA[<p>Thank you! This is exactly what I was looking for, and you are right about this topic being one that isn&#8217;t really google friendly!</p>
<p>I haven&#8217;t actually tried this yet, but as I read this I&#8217;m wondering what the actual code block inside of the mxml.as file is&#8230;is it a package?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-7736</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Tue, 23 Dec 2008 21:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-7736</guid>
		<description>Odd... in a recent project, this failed to work for me. Perhaps the Flex IDE gets confused at a certain scale of project? In test projects, the aforementioned splitting and importing worked like a charm (code-hinting, etc.), but in a recent larger-scale project it didn&#039;t work at all. Hurumph!</description>
		<content:encoded><![CDATA[<p>Odd&#8230; in a recent project, this failed to work for me. Perhaps the Flex IDE gets confused at a certain scale of project? In test projects, the aforementioned splitting and importing worked like a charm (code-hinting, etc.), but in a recent larger-scale project it didn&#8217;t work at all. Hurumph!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-7735</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Tue, 23 Dec 2008 21:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-7735</guid>
		<description>I like the convenience of having the AS and MXML in the same file, but don&#039;t like some of the artifacts -- most of them faults of the IDE.

There&#039;s also the argument that strictly speaking, mark-up (declarative) and code (imperative) should be distinct units.</description>
		<content:encoded><![CDATA[<p>I like the convenience of having the AS and MXML in the same file, but don&#8217;t like some of the artifacts &#8212; most of them faults of the IDE.</p>
<p>There&#8217;s also the argument that strictly speaking, mark-up (declarative) and code (imperative) should be distinct units.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Fendall</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-7693</link>
		<dc:creator>Tony Fendall</dc:creator>
		<pubDate>Wed, 17 Dec 2008 20:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-7693</guid>
		<description>I think the one thing people miss in these discussions, is the advantages of having related bits code close together.

I personally like the fact that my components and the code which directly interfaces with those components, are both in the same file.  It makes it easy to develop without having to switch back and forth between multiple files as I go</description>
		<content:encoded><![CDATA[<p>I think the one thing people miss in these discussions, is the advantages of having related bits code close together.</p>
<p>I personally like the fact that my components and the code which directly interfaces with those components, are both in the same file.  It makes it easy to develop without having to switch back and forth between multiple files as I go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-6052</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Mon, 01 Sep 2008 22:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-6052</guid>
		<description>Doubling the amount of files is not a big deal because that&#039;s the simplest granularity to work with version control at. If you&#039;re working solo, then yes, it can be unnecessary, but in a team environment it wouldn&#039;t be too much of a burden.

And even with good MVC practices, you can still have scenarios where you have plenty of declarative MXML and plenty of imperative AS3... for those situations, this can be useful.</description>
		<content:encoded><![CDATA[<p>Doubling the amount of files is not a big deal because that&#8217;s the simplest granularity to work with version control at. If you&#8217;re working solo, then yes, it can be unnecessary, but in a team environment it wouldn&#8217;t be too much of a burden.</p>
<p>And even with good MVC practices, you can still have scenarios where you have plenty of declarative MXML and plenty of imperative AS3&#8230; for those situations, this can be useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan miller</title>
		<link>http://troygilbert.com/2008/08/how-to-get-rid-of-mxscript-blocks-in-your-mxml/comment-page-1/#comment-6010</link>
		<dc:creator>ryan miller</dc:creator>
		<pubDate>Sun, 31 Aug 2008 21:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=122#comment-6010</guid>
		<description>yes, but now you&#039;ve doubled the amount of FILES in your project, which I would find annoying.  I&#039;ve never even considered the script block in my MXML to be a big problem.  Maybe because I&#039;ve always used some kind of MVC framework, it&#039;s never gotten out of control.  Also, if your script block is getting huge, that&#039;s a good indicator that you need to break up your MXML into sub-components.</description>
		<content:encoded><![CDATA[<p>yes, but now you&#8217;ve doubled the amount of FILES in your project, which I would find annoying.  I&#8217;ve never even considered the script block in my MXML to be a big problem.  Maybe because I&#8217;ve always used some kind of MVC framework, it&#8217;s never gotten out of control.  Also, if your script block is getting huge, that&#8217;s a good indicator that you need to break up your MXML into sub-components.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

