<?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; compile</title>
	<atom:link href="http://www.daveoncode.com/tag/compile/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>
	</channel>
</rss>

