<?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>Reality And A Half &#187; flex</title>
	<atom:link href="http://reality-and-a-half.multiversum.com/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://reality-and-a-half.multiversum.com</link>
	<description>Mentionable ideas and projects in the digital space</description>
	<lastBuildDate>Tue, 24 Jan 2012 15:40:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Use as3corelib in conjunction with Flex 4</title>
		<link>http://reality-and-a-half.multiversum.com/2011/04/use-as3corelib-in-conjunction-with-flex-4/</link>
		<comments>http://reality-and-a-half.multiversum.com/2011/04/use-as3corelib-in-conjunction-with-flex-4/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 20:26:24 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Werkzeuge]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[as3corelib]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flash builder 4]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[flex 4]]></category>

		<guid isPermaLink="false">http://reality-and-a-half.multiversum.com/?p=366</guid>
		<description><![CDATA[The popular ActionSript 3 Core Library is still a valuable help in many Flex projects. Started as library to be used with Flex 2 it is actively developed and can still be used with the current Flex 4.x SDKs, and of course Flash Builder 4. Unfortunately it is not obvious to use it in Flash [...]]]></description>
			<content:encoded><![CDATA[<p>The popular ActionSript 3 Core Library is still a valuable help in many Flex projects. Started as library to be used with Flex 2 it is actively developed and can still be used with the current Flex 4.x SDKs, and of course Flash Builder 4.<br />
Unfortunately it is not obvious to use it in Flash Builder 4 since there is no as3corelib.swc compiled by Flex 4.x (or it is so hard to find that I couldn&#8217;t work it out).</p>
<p>So let&#8217;s build the library by ourself:</p>
<ol>
<li> Download the source archive (Note: the project moved from Google Code to github).</li>
<li> Unpack it to a folder.</li>
<li> In Flash Builder 4 select &#8220;File&#8221; &gt; &#8220;New&#8221; &gt; &#8220;Flex Library-Project&#8221;</li>
<li> Enter a name (e.g. &#8220;as3corelib&#8221;)</li>
<li> Select the directory of the unpacked projects</li>
<li> Select in the section &#8220;Flex SDK-Version&#8221; Flex 4.1 (or higher), if this is not your standard SDK.</li>
<li><strong>And this is important: Select &#8220;Include AIR-Runtime-Libraries&#8221; &#8211; otherwise you&#8217;ll get include errors</strong></li>
<li> Click on the &#8220;Done&#8221; button</li>
<li> Now you&#8217;ve got a brand new Flex library project</li>
<li> Launch the &#8220;application&#8221; by &#8220;Run&#8221; &gt; &#8220;Run main&#8221;</li>
<li> This should result to a fresh compiled &#8220;as3corelib.swc&#8221; in your bin path of the unpacked as3corelib source archive</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://reality-and-a-half.multiversum.com/2011/04/use-as3corelib-in-conjunction-with-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get more control over the Flex DateField component</title>
		<link>http://reality-and-a-half.multiversum.com/2010/01/get-more-control-over-the-flex-datefield-component/</link>
		<comments>http://reality-and-a-half.multiversum.com/2010/01/get-more-control-over-the-flex-datefield-component/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:00:57 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Werkzeuge]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DateField]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[ria]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://reality-and-a-half.multiversum.com/?p=121</guid>
		<description><![CDATA[I really messed up with the standard Flex DateField component trying to get rid of this annoying text field left to the date icon. In my opinion Flex gives you too less control over all of the in a DateField included components. There is no attribute or style available to hide the TextInput field. But [...]]]></description>
			<content:encoded><![CDATA[<p>I really messed up with the standard Flex DateField component trying to get rid of this annoying text field left to the date icon. In my opinion Flex gives you too less control over all of the in a DateField included components. There is no attribute or style available to hide the TextInput field.</p>
<p>But fortunately it&#8217;s very easy to extend Flex components. For a project I was working I pragmatically turned off the visibility of the input field by making the TextInput field child object accessible to the outer world by adding a getter and a setter method for the ComboBase textField class property. This gives us full control over the input field. Instead of just turning visibility off you can of change other properties as the width or height.</p>
<p>The actionscript extension class (DateChooserPopup.as)<br />
<span style="font-family: monospace, 'Times New Roman', 'Bitstream Charter', Times, serif; "> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="color: #ad01d6;">package</span> customComponents</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">import</span> mx.controls.DateField;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">import</span> mx.controls.TextInput;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">public</span> <span style="color: #ad01d6;">class</span> DateChooserPopup <span style="color: #3c3dff;">extends</span> DateField</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;"> public</span> <span style="color: #44a979;">function</span> DateChooserPopup()</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">super</span>();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">public</span> <span style="color: #44a979;">function</span> <span style="color: #3c3dff;">set</span> TextInputField( textInput:TextInput ):<span style="color: #3c3dff;">void</span> {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">this</span>.textInput = textInput;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">public</span> <span style="color: #44a979;">function</span> <span style="color: #3c3dff;">get</span> TextInputField():TextInput {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span><span style="color: #3c3dff;">return</span> <span style="color: #3c3dff;">this</span>.textInput;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="white-space: pre;"> </span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;"><span style="white-space: pre;"> <span style="white-space: normal;"><span style="white-space: pre;"> </span>}</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;">}</p>
<div><span style="font-family: Monaco, 'Times New Roman', 'Bitstream Charter', Times, serif;"><span style="line-height: normal;"><br />
</span></span></div>
<p>Now we use the new component within the MXML main file:</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #a71206;"><span style="color: #3c00ff;">&lt;mx:Application</span><span style="color: #000000;"> xmlns:mx=&#8221;</span>http://www.adobe.com/2006/mxml<span style="color: #000000;">&#8221; width=&#8221;</span>640<span style="color: #000000;">&#8221; height=&#8221;</span>445<span style="color: #000000;">&#8221; layout=&#8221;</span>absolute<span style="color: #000000;">&#8221; backgroundGradientColors=&#8221;</span>[#FFFFFF, #FFFFFF]<span style="color: #000000;">&#8221; xmlns:CUSTComp=&#8221;</span><span style="color: #000000;">customComponents.*</span><span style="color: #000000;">&#8220;</span><span style="color: #3c00ff;">&gt;</span></p>
<div><span style="font-family: Monaco, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #3c00ff; font-size: small;"><span style="line-height: normal;"></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;"><span style="color: #3c00ff;"> &lt;CUSTComp:DateChooserPopup</span> creationComplete=&#8221;<span style="color: #3c3dff;">this</span>.TextInputField.visible=false&#8221; <span style="color: #3c00ff;">/&gt;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3c00ff;">&lt;/mx:Application&gt;</p>
<div><span style="font-family: Monaco, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #3c00ff; font-size: small;"><span style="line-height: normal;"><br />
</span></span></div>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3c00ff;"><span style="font-size: small;"><span style="font-size: small;"><span><br />
</span></span></span></p>
<p></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://reality-and-a-half.multiversum.com/2010/01/get-more-control-over-the-flex-datefield-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

