<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark Ledford&#039;s Blog &#187; flex</title>
	<atom:link href="http://www.markledford.com/blog/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markledford.com/blog</link>
	<description>Documenting the pitfalls of a Flash platform developer</description>
	<lastBuildDate>Thu, 24 Jun 2010 14:49:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Event.INIT and Event.COMPLETE don&#8217;t fire when loading an unpacked swc</title>
		<link>http://www.markledford.com/blog/2008/07/24/eventinit-and-eventcomplete-dont-fire-when-loading-an-unpacked-swc/</link>
		<comments>http://www.markledford.com/blog/2008/07/24/eventinit-and-eventcomplete-dont-fire-when-loading-an-unpacked-swc/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 18:01:13 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=12</guid>
		<description><![CDATA[Cleaning out the wordpress there were a few posts I hadn&#8217;t finished. This one is mainly a for-future-reference for myself. I&#8217;ve been doing some run-time class loading involving loading SWF files into the same ApplicationDomain as the container via Loader then using getDefinitionByName to access new instances of the loaded classes. I was perplexed that [...]]]></description>
			<content:encoded><![CDATA[<p>Cleaning out the wordpress there were a few posts I hadn&#8217;t finished. This one is mainly a for-future-reference for myself.</p>
<p>I&#8217;ve been doing some run-time class loading involving loading SWF files into the same ApplicationDomain as the container via Loader then using getDefinitionByName to access new instances of the loaded classes. I was perplexed that the INIT and COMPLETE events weren&#8217;t being dispatched and found some info <a href="http://blog.andre-michelle.com/2007/generate-accessible-swf-does-not-generate-a-swf/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/07/24/eventinit-and-eventcomplete-dont-fire-when-loading-an-unpacked-swc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for Eclipse tab reordering &#8220;feature&#8221;  (MRU tab positioning policy)</title>
		<link>http://www.markledford.com/blog/2008/03/18/fix-for-eclipse-tab-reordering-feature-mru-tab-positioning-policy/</link>
		<comments>http://www.markledford.com/blog/2008/03/18/fix-for-eclipse-tab-reordering-feature-mru-tab-positioning-policy/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 18:25:45 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=14</guid>
		<description><![CDATA[I love using Eclipse for my day to day but I hate how it automatically re-orders my tabs. It looks like other people view the Eclipse &#8220;MRU&#8221; tab positioning policy as a burden as well. If you know what I&#8217;m talking about and want your tabs to remain where you put them, try installing this [...]]]></description>
			<content:encoded><![CDATA[<p>I love using Eclipse for my day to day but I hate how it automatically re-orders my tabs. It looks like other people view the <a href="http://andrei.gmxhome.de/eclipseMRUbug.html">Eclipse &#8220;MRU&#8221; tab positioning policy as a burden</a> as well.</p>
<p>If you know what I&#8217;m talking about and want your tabs to remain where you put them, try installing this Eclipse plugin made to do exactly that: <a href="http://andrei.gmxhome.de/skins/index.html">Extended VS Presentation plugin</a><br />
Its got some other really nice features but check it out and see for yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/03/18/fix-for-eclipse-tab-reordering-feature-mru-tab-positioning-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the &#8220;include&#8221; directive to update multiple classes</title>
		<link>http://www.markledford.com/blog/2008/02/06/using-the-include-directive-to-update-multiple-classes/</link>
		<comments>http://www.markledford.com/blog/2008/02/06/using-the-include-directive-to-update-multiple-classes/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 21:40:38 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=10</guid>
		<description><![CDATA[I recently subclassed Flex&#8217;s Canvas to utilize my own custom scrollbars (what a pain!) and soon found I needed to do the same with the Box container (VBox, HBox). Due to the clean OOP nature of these components my overrides and implementation turned out exactly the same for my CustomScrollBarCanvas and CustomScrollBarBox. After a few [...]]]></description>
			<content:encoded><![CDATA[<p>I recently subclassed Flex&#8217;s Canvas to utilize my own custom scrollbars (what a pain!) and soon found I needed to do the same with the Box container (VBox, HBox). Due to the clean OOP nature of these components my overrides and implementation turned out exactly the same for my CustomScrollBarCanvas and CustomScrollBarBox. After a few refactoring sessions copying and pasting my changes to both subclasses I ended up moving all my code to a separate include file and its worked out beautifully with Flex still checking the code during incremental compile:</p>
<p>public class CustomScrollBarCanvas extends Canvas {<br />
public function CustomScrollBarCanvas(){<br />
super();<br />
}<br />
include &#8220;CustomScrollBarImplementation.as&#8221;<br />
}</p>
<p>public class CustomScrollBarCanvas extends Box {<br />
public function CustomScrollBarCanvas(){<br />
super();<br />
}<br />
include &#8220;CustomScrollBarImplementation.as&#8221;<br />
}</p>
<p>The Actionscript &#8220;include&#8221; directive is useful when you have a variable or several lines of code that are mirrored in several classes and you want to maintain that code in a central file. Flex and other frameworks use it commonly to write out framework version numbers on all their classes explicitly during compile time.  Flex also uses it to write out groups of meta style tags by type (TextStyles.as, BorderStyles.as, etc) into the components that use them. Its really quite ingenious for upkeep but really simple to implement. (FYI in AS3 you no longer prepend the include statement with a &#8220;#&#8221;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/02/06/using-the-include-directive-to-update-multiple-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The entity name must immediately follow the &#8216;&amp;&#8217; in the entity reference</title>
		<link>http://www.markledford.com/blog/2008/01/30/the-entity-name-must-immediately-follow-the-in-the-entity-reference/</link>
		<comments>http://www.markledford.com/blog/2008/01/30/the-entity-name-must-immediately-follow-the-in-the-entity-reference/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 17:01:03 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=8</guid>
		<description><![CDATA[If you&#8217;ve ever written code in a binding tag and gotten a special character error try html-encoding the character like you&#8217;d do if you were encoding regular text: Error: &#60;mx:TextInput text=&#34;{(_feed.url &#38;&#38; !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}&#34; /&#62; Works: &#60;mx:TextInput text=&#34;{(_feed.url &#38;amp;&#38;amp; !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}&#34; /&#62; It makes sense after the fact but before [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever written code in a binding tag and gotten a special character error try html-encoding the character like you&#8217;d do if you were encoding regular text:</p>
<p>Error:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>TextInput <span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;{(_feed.url &amp;&amp; !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span></div></div>
<p>Works:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>TextInput <span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;{(_feed.url &amp;amp;&amp;amp; !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span></div></div>
<p>It makes sense after the fact but before you actually do it, it just looks odd to html-encode your actionscript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/01/30/the-entity-name-must-immediately-follow-the-in-the-entity-reference/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>flex debugging adding ?debug=true to your debug file path</title>
		<link>http://www.markledford.com/blog/2008/01/18/flex-debugging-adding-debugtrue-to-your-debug-file-path/</link>
		<comments>http://www.markledford.com/blog/2008/01/18/flex-debugging-adding-debugtrue-to-your-debug-file-path/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 16:59:37 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=7</guid>
		<description><![CDATA[I&#8217;ve exhausted my resources trying to figure out how to disable Flex from adding the querystring variable ?debug=true to whatever file path you use when launching your app in debug mode. I have my debug path pointing to an html file with a custom html embed so this flag isn&#8217;t being used by it. It [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve exhausted my resources trying to figure out how to disable Flex from adding the querystring variable ?debug=true to whatever file path you use when launching your app in debug mode. I have my debug path pointing to an html file with a custom html embed so this flag isn&#8217;t being used by it. It is however blocking me from appending my own variables which get encoded and made unusable :/</p>
<p>The only thing I came up with in google is this semi-related reference from: http://livedocs.adobe.com/labs/flex3/html/help.html?content=apache_3.html</p>
<p>&#8220;Flex Builder appends <samp class="codeph">?debug=true</samp> to the URL when it launches the browser. This query string parameter triggers a compilation with the debug compiler options enabled.&#8221;</p>
<p>Does any of the 0 people that read my blog have an answer or suggestion? I&#8217;m assuming a solution could be found regarding the use of &#8220;query string parameter overrides&#8221; and the flex-config.xml file. The investigation continues&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/01/18/flex-debugging-adding-debugtrue-to-your-debug-file-path/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using the class path resolution to your advantage</title>
		<link>http://www.markledford.com/blog/2008/01/13/using-the-class-path-resolution-to-your-advantage/</link>
		<comments>http://www.markledford.com/blog/2008/01/13/using-the-class-path-resolution-to-your-advantage/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 09:07:49 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=6</guid>
		<description><![CDATA[Heres a interesting, albeit questionable hack when extending flex classes that cockblock you with a private property or require you to extend several classes when you just want to tweak 1 line of insignificant code in the component. You can grab the class you want to tweak and copy it to your project folder, mirroring [...]]]></description>
			<content:encoded><![CDATA[<p>Heres a interesting, albeit questionable hack when extending flex classes that cockblock you with a private property or require you to extend several classes when you just want to tweak 1 line of insignificant code in the component.</p>
<p>You can grab the class you want to tweak and copy it  to your project folder, mirroring its package with the appropriate folders. When classes get resolved your project folder gets checked before default system paths so your edited version will get compiled in.</p>
<p>I don&#8217;t recommend doing this, probably ever, but its been my best friend when I just wanted to tweak that dark 1 pixel line that the Panel component&#8217;s title bar receives via TitleBackground without making it a long and convoluted proccess.  I don&#8217;t know how well this will work with Flex 3&#8242;s framework caching but its nice to know this quick and dirty method is there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2008/01/13/using-the-class-path-resolution-to-your-advantage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
