<?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>DaveOnCode &#187; flex builder</title>
	<atom:link href="http://www.daveoncode.com/tag/flex-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveoncode.com</link>
	<description>Objective C, iOS and more programming stuff</description>
	<lastBuildDate>Mon, 19 Dec 2011 12:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Resolve Flex&#8217;s error: &#8220;Type was not found or was not a compile-time constant&#8221;</title>
		<link>http://www.daveoncode.com/2009/08/02/flex-type-was-not-found-or-was-not-a-compile-time-constant/</link>
		<comments>http://www.daveoncode.com/2009/08/02/flex-type-was-not-found-or-was-not-a-compile-time-constant/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 10:23:09 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flex builder]]></category>

		<guid isPermaLink="false">http://www.daveoncode.com/?p=446</guid>
		<description><![CDATA[I just faced the terrible nightmare of &#8220;Type was not found or was not a compile-time constant&#8221; error (Flex Builder) and I lost several time to figure out what the problem was. I realized that I was using the same name for MXML Application file which was already used by a class inside one of [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/08/02/flex-type-was-not-found-or-was-not-a-compile-time-constant/' addthis:title='Resolve Flex&#8217;s error: &#8220;Type was not found or was not a compile-time constant&#8221; ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I just faced the terrible nightmare of &#8220;Type was not found or was not a compile-time constant&#8221; error (Flex Builder) and I lost several time to figure out what the problem was.<br />
I realized that I was using the same name for MXML Application file which was already used by a class inside one of my packages. So, by renaming the file I solved the problem, but I was not completely satisfied and I looked for a way to avoid the error mantaining the same file/class name. Initially I tried to use namespaces, but as the reference says: <em> &#8220;Applying a namespace means placing a definition into a namespace. Definitions that can be placed into namespaces include functions, variables, and constants (<strong>you cannot place a class into a custom namespace</strong>)&#8221;</em>. I finally solved by renaming class references inside my package with the full qualified name (from MyClass to com.mysite.foo.MyClass)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/08/02/flex-type-was-not-found-or-was-not-a-compile-time-constant/' addthis:title='Resolve Flex&#8217;s error: &#8220;Type was not found or was not a compile-time constant&#8221; ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2009/08/02/flex-type-was-not-found-or-was-not-a-compile-time-constant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Choose and install multiple Flex SDKs for Flex Builder</title>
		<link>http://www.daveoncode.com/2009/01/04/choose-and-install-multiple-flex-sdks-for-flex-builder/</link>
		<comments>http://www.daveoncode.com/2009/01/04/choose-and-install-multiple-flex-sdks-for-flex-builder/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 15:47:07 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[gumbo]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=187</guid>
		<description><![CDATA[With Flex Builder is possible to install several SDKs (for example for testing purpose), all the SDKs are available here: http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK. It&#8217;s possible for example to download the last SDK (still a preview) Flex 4 (codename Gumbo) and add it to the already installed SDKs, the procedure is really simple: Download the zip file of [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/01/04/choose-and-install-multiple-flex-sdks-for-flex-builder/' addthis:title='Choose and install multiple Flex SDKs for Flex Builder ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>With Flex Builder is possible to install several SDKs (for example for testing purpose), all the SDKs are available here: <a href="http://opensource.adobe.com/wiki/display/flexsdk" target="_blank">http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK</a>.<br />
It&#8217;s possible for example to download the last SDK (still a preview) Flex 4 (codename Gumbo) and add it to the already installed SDKs, the procedure is really simple:</p>
<ul>
<li>Download the zip file of the desired SDK (you have first to accept the license agreement)</li>
<li>Unzip it and rename the folder by leaving only the version number</li>
<li>Go to the installation folder of Flex Builder (which is in my case:  &#8220;/Applications/Adobe Flex Builder 3 Plug-in/&#8221;, because I&#8217;m using the Flex Builder plugin for Eclipse under Mac OS X)</li>
<li>Copy the zip content into the folder named &#8220;sdks&#8221;</li>
<li>Open Flex Builder and go to: Preferences / Flex / Installed Flex SDKs</li>
<li>Click on &#8220;Add&#8230;&#8221; button</li>
<li>Click on &#8220;Browse&#8230;&#8221; button and select the folder of the previously installed SDK</li>
<li>Flex Builder will automagically compiles the field &#8220;Flex SDK name&#8221; with &#8220;Flex 4.0&#8243; (the name can be changed to whatever we like)</li>
<li>Now is possible to choose which SDK will be used by selecting its checkbox (in this case checkboxes are not an adequate choice, they should be radio buttons, because we can use only an SDK at time)</li>
</ul>
<p>This is how the SDKs window looks on a Mac:</p>
<p><img class="size-full wp-image-190" title="Adding a new Flex SDK" src="http://www.daveoncode.com/wp-content/uploads/2009/01/add-flex-sdk.jpg" alt="Adding a new Flex SDK" /></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/01/04/choose-and-install-multiple-flex-sdks-for-flex-builder/' addthis:title='Choose and install multiple Flex SDKs for Flex Builder ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2009/01/04/choose-and-install-multiple-flex-sdks-for-flex-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello Flex, nice to meet you!</title>
		<link>http://www.daveoncode.com/2008/11/15/hello-flex-nice-to-meet-you/</link>
		<comments>http://www.daveoncode.com/2008/11/15/hello-flex-nice-to-meet-you/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 21:27:18 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[constraint]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[mxml]]></category>

		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=44</guid>
		<description><![CDATA[Today I&#8217;ve moved my first steps in the Flex world, following the introducing lessons of &#8220;Adobe Flex 3 &#8211; Training from the source&#8221;. After an introduction about RIAs, I&#8217;ve met Mr. Flex Builder and he told me about the fact that he has two faces, one for the source code and one for the visual [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2008/11/15/hello-flex-nice-to-meet-you/' addthis:title='Hello Flex, nice to meet you! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve moved my first steps in the Flex world, following the introducing lessons of &#8220;Adobe Flex 3 &#8211; Training from the source&#8221;. After an introduction about RIAs, I&#8217;ve met Mr. Flex Builder and he told me about the fact that he has two faces, one for the source code and one for the visual design, and that he can switch among different perspectives (development, debugging and profiling)&#8230; then he showed me all his controls and layout components&#8230; he was so proud of them, but I told him that I can&#8217;t spend all the weekend to test their functionalities. So, I&#8217;ve took a look at how layouts work in Flex, and I&#8217;m very satisfied about the ability to draw dynamic areas that are able to resize and to be anchored to specific points.</p>
<p><span id="more-44"></span></p>
<p>As you can see in this screenshot:</p>
<p><img class="size-full wp-image-45" title="Flex layout example" src="http://daveoncode.files.wordpress.com/2008/11/firstflexprojecthtml-1.jpg" alt="Flex layout example" width="413" height="298" /></p>
<p>I&#8217;ve divided the application main content (that below the stripe &#8220;DaveOnFlex&#8230;&#8221;) into a sort of table of 4 columns x 2 rows, and each textarea is expandable/collapsible in response of window resize. All the code that I used was 15 lines of MXML tags:</p>
<pre>&lt;mx:constraintColumns&gt;
	&lt;mx:ConstraintColumn id="c1" width="25%" minWidth="100" /&gt;
	&lt;mx:ConstraintColumn id="c2" width="25%" minWidth="100" /&gt;
	&lt;mx:ConstraintColumn id="c3" width="25%" minWidth="100" /&gt;
	&lt;mx:ConstraintColumn id="c4" width="25%" minWidth="100" /&gt;
&lt;/mx:constraintColumns&gt;

&lt;mx:constraintRows&gt;
	&lt;mx:ConstraintRow id="r1" height="50%" minHeight="100" /&gt;
	&lt;mx:ConstraintRow id="r2" height="50%" minHeight="100" /&gt;
&lt;/mx:constraintRows&gt;

&lt;mx:TextArea left="c1:2" top="r1:2" right="c2:2" bottom="r1:2" text="textarea 1" /&gt;
&lt;mx:TextArea left="c1:2" top="r2:2" right="c1:2" bottom="r2:2" text="textarea 2" /&gt;
&lt;mx:TextArea left="c2:2" top="r2:2" right="c2:2" bottom="r2:2" text="textarea 3" /&gt;
&lt;mx:TextArea left="c3:2" top="r1:2" right="c3:2" bottom="r2:2" text="textarea 4" /&gt;
&lt;mx:TextArea left="c4:2" top="r1:2" right="c4:2" bottom="r2:2" text="textarea 5" /&gt;</pre>
<p>constraintColumns and constraintRows combined define the &#8220;virtual table&#8221; into which the TextArea can be anchored to, by specifying the id and the offset of the anchor point.<br />
For example, this:</p>
<pre>&lt;mx:TextArea left="c1:2" top="r1:2" right="c2:2" bottom="r1:2" text="textarea 1" /&gt;</pre>
<p>means: anchor this control 2 pixel to the left of the first column (c1:2), 2 pixel to the top of the first row (r1:1), 2 pixel to the right of the second column (c2:2) and 2 pixel to the bottom of the first row (r1:2). Cool!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2008/11/15/hello-flex-nice-to-meet-you/' addthis:title='Hello Flex, nice to meet you! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2008/11/15/hello-flex-nice-to-meet-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

