<?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>IRL Geek &#187; mx:script</title>
	<atom:link href="http://irlgeek.com/tag/mxscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://irlgeek.com</link>
	<description>Being a geek is awesome!</description>
	<lastBuildDate>Sat, 12 Nov 2011 08:30:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Solve the call to undefined property problem &#8211; Flex</title>
		<link>http://irlgeek.com/tutorials/solve-the-call-to-undefined-property-problem-flex/</link>
		<comments>http://irlgeek.com/tutorials/solve-the-call-to-undefined-property-problem-flex/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 20:11:56 +0000</pubDate>
		<dc:creator>Panos Oikonomakis</dc:creator>
				<category><![CDATA[teachme.cpp]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[mx:script]]></category>

		<guid isPermaLink="false">http://irlgeek.com/?p=50</guid>
		<description><![CDATA[Let&#8217;s all admit that we love Flex. It&#8217;s the way that the new wave of developers should write code. The current version 3.0 is quite buggy, since this is the first mainstream release (yes, version 2.0 was the big release, but 3.0 has more hands-on testers).  Anyways, we will try to fix a common error [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://irlgeek.com/wp-content/uploads/2010/02/Fx.png"><img class="alignleft size-thumbnail wp-image-43" title="adobe Flex" src="http://irlgeek.com/wp-content/uploads/2010/02/Fx-150x150.png" alt="adobe flex logo" width="150" height="150" /></a>Let&#8217;s all admit that we love Flex. It&#8217;s the way that the new wave of developers should write code.</p>
<p>The current version 3.0 is quite buggy, since this is the first mainstream release (yes, version 2.0 was the big release, but 3.0 has more hands-on testers).  Anyways, we will try to fix a common error that is produced from the Database Wizard.</p>
<p>When we built our application (web or Air , it doesn&#8217;t matter, the error is the same) from the Database Wizard, Flex produces 3 files. The MXML file with the source code, *Script.as with the necessary actionscript code to handle all the database functions, such as Insert, Update, Delete, and the *config.as  which contains some irrelevant (to this tutorial) code.<br />
<span id="more-50"></span><br />
If you start messing with the source code in the MXML file, you will probably get the &#8220;Call to undefined property&#8230;&#8221; error. To fix this you need to follow the following steps:</p>
<ul>
<li>Select and copy all the contents of your *Script.as file</li>
<li>Go to the line <em>&lt;mx:Script source=&#8221;*Script.as&#8221; /&gt; </em>and remove <em>source=&#8221;*Script.as&#8221; /</em> (don&#8217;t forget the trailing slash) and it should look like <em>&lt;mx:Script &gt;</em></li>
<li>Now close the Script with <em>&lt;/mx:Script&gt;</em></li>
<li>Between the tags <em>&lt;mx:Script&gt;&lt;/mx:Script&gt;</em> paste the contents of the *Script.as file.</li>
<li>Save &amp; Error gone!</li>
</ul>
<p>This error occurs because the file *Script.as is loaded to the application as a class and not a script. If this tutorial helped you please leave feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://irlgeek.com/tutorials/solve-the-call-to-undefined-property-problem-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

