<?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>Miti&#039;s Blog &#187; tips &amp; tricks</title>
	<atom:link href="http://miti.pricope.com/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://miti.pricope.com</link>
	<description>about technology</description>
	<lastBuildDate>Sat, 06 Feb 2010 10:08:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using Illustrator, Flash Catalyst and Flash Builder to create an avatar widget</title>
		<link>http://miti.pricope.com/2010/02/06/using-illustrator-flash-catalyst-and-flash-builder-to-create-an-avatar-widget/</link>
		<comments>http://miti.pricope.com/2010/02/06/using-illustrator-flash-catalyst-and-flash-builder-to-create-an-avatar-widget/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 08:08:06 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[flash builder]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=257</guid>
		<description><![CDATA[Since I have a little more spare time now … I decided to hack a little bit . Avatar is the new hype nowadays and I wanted to understand how simple (or how complicated) will be to build an avatar widget. So I gave it a try, but instead of a Na’vi avatar, I decided [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://miti.pricope.com/samples/video/Avatar_Widget_Illustrator_Catalyst_Builder.html"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="bmw_z1" border="0" alt="bmw_z1" align="left" src="http://miti.pricope.com/wp-content/uploads/2010/02/bmw_z1.jpg" width="301" height="227" /></a>Since I have a little more spare time now … I decided to hack a little bit <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Avatar is the new hype nowadays <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and I wanted to understand how simple (or how complicated) will be to build an avatar widget. So I gave it a try, but instead of a Na’vi avatar, I decided to apply some artwork on top of an BMW Z1 <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I’ve made a video with my little workflow that you can watch it <a href="http://miti.pricope.com/samples/video/Avatar_Widget_Illustrator_Catalyst_Builder.html">here</a> (I couldn’t believe how easy it was).</p>
<p>You can also see the running demo (and download the source files) <a href="http://miti.pricope.com/samples/bmw/Main.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2010/02/06/using-illustrator-flash-catalyst-and-flash-builder-to-create-an-avatar-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The infamous Error #2044: Unhandled StatusEvent:. level=error, code= on LocalConnection</title>
		<link>http://miti.pricope.com/2009/07/24/the-infamous-error-2044-unhandled-statusevent-levelerror-code-on-localconnection/</link>
		<comments>http://miti.pricope.com/2009/07/24/the-infamous-error-2044-unhandled-statusevent-levelerror-code-on-localconnection/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 08:27:36 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[Flash Player 10]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=176</guid>
		<description><![CDATA[This is a blog post to all that was almost to throw their computers out of the window because they got &#34;Error #2044: Unhandled StatusEvent:. level=error, code=&#34; trying to communicate through LocalConnection. So I am trying to send a message from a Flex application running in Flash Player to an AIR application. In the AIR [...]]]></description>
			<content:encoded><![CDATA[<p>This is a blog post to all that was almost to throw their computers out of the window because they got &quot;Error #2044: Unhandled StatusEvent:. level=error, code=&quot; trying to communicate through LocalConnection.</p>
<p>So I am trying to send a message from a Flex application running in Flash Player to an AIR application. In the AIR application (called testAIR) I have something like:</p>
<p><pre class="brush: as3;">
private function initApp():void {
	var inbound:LocalConnection = new LocalConnection();
	//only allow connections from localhost
	inbound.allowDomain(&quot;localhost&quot;);
	inbound.client = new Object();
	//this is the function that will be called by the Browser App
	inbound.client.notifyPayment = function test():void {
		Alert.show(&quot;HERE&quot;);
	};
	inbound.connect(&quot;paymentSample&quot;);
}
</pre>
</p>
<p>pretty straightforward, right from the book.</p>
<p>In the Flex app I just do:</p>
<p><pre class="brush: as3;">
outbound.connect(&quot;paymentSample&quot;);
outbound.send(&quot;app#testAIR:paymentSample&quot;,&quot;notifyPayment&quot;);
outbound.close();
</pre>
</p>
<p>You might think that this should work. Well &#8230; NOT.&#160; This is because in the AIR app the inbound LocalConnection is a variable that is declared in the local scope of a method. Now I was expecting that when I call&#160; the connect method the inbound object will be referenced by another object (some LocalConnection manager, or event handler) and it will not get garbage collected after the method ends. Well, apparently is not the case. Either there is a bug in AIR, either this reference is a weak reference so it gets garbage collected. This means that by the time you try to send the message from Flash Player your inbound object is long gone!</p>
<p>The resolution is quite simple. You just need to reference the inbound object somewhere else, making him a member of class or something. In my case I just declare it as a private variable inside my MXML component:</p>
<p><pre class="brush: as3;">
private var inbound:LocalConnection = new LocalConnection();

private function initApp():void {
	//only allow connections from localhost
	inbound.allowDomain(&quot;localhost&quot;);
       ....
</pre>
</p>
<p>Hope this will help someone <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2009/07/24/the-infamous-error-2044-unhandled-statusevent-levelerror-code-on-localconnection/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Debug Flex and PHP using Flash Builder 4 and PDT</title>
		<link>http://miti.pricope.com/2009/07/09/debug-flex-and-php-using-flash-builder-4-and-pdt/</link>
		<comments>http://miti.pricope.com/2009/07/09/debug-flex-and-php-using-flash-builder-4-and-pdt/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 12:31:20 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[debugging]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=69</guid>
		<description><![CDATA[It took me more that I would have liked but here’s a screencast on how to debug flex and php applications using Flash Builder 4 and PDT. &#160;]]></description>
			<content:encoded><![CDATA[<p>It took me more that I would have liked but <a href="http://miti.pricope.com/samples/video/debug-flex-and-php-flash-builder-pdt.html">here’s</a> a screencast on how to debug flex and php applications using Flash Builder 4 and PDT.</p>
<p>&#160;</p>
<p><a href="http://miti.pricope.com/samples/video/debug-flex-and-php-flash-builder-pdt.html"><img height="288" src="http://miti.pricope.com/samples/video/Slide01.jpg" width="384" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2009/07/09/debug-flex-and-php-using-flash-builder-4-and-pdt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Playing with Custom Layout in Flex 4</title>
		<link>http://miti.pricope.com/2009/05/29/playing-with-custom-layout-in-flex-4/</link>
		<comments>http://miti.pricope.com/2009/05/29/playing-with-custom-layout-in-flex-4/#comments</comments>
		<pubDate>Fri, 29 May 2009 13:25:26 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[ria]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=65</guid>
		<description><![CDATA[As Flex 4 SDK is almost in it’s Beta state I took a look at his features and what impressed me the most was how the presentation is decoupled from the behavior. I remember a presentation around Max 2007 when Ely Greenfield, the principal scientist for Flex SDK, showed a sneak peek on how this [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://miti.pricope.com/samples/listGumbo1/small3.html"><img title="gumboList" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" height="213" alt="gumboList" src="http://miti.pricope.com/wp-content/uploads/2009/05/gumbolist1.png" width="123" align="left" border="0" /></a>As Flex 4 SDK is almost in it’s Beta state I took a look at his features and what impressed me the most was how the presentation is decoupled from the behavior. I remember a presentation around Max 2007 when <a href="http://www.quietlyscheming.com/blog/">Ely Greenfield</a>, the principal scientist for Flex SDK, showed a sneak peek on how this will make a lot of skinning things a lot simpler. For example, it’s simple to make a list look … let’s say to make it look like the Fan effect that Mac users love so much <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I found this quite easy to implement using Flex 4. Because the list can be skinned in MXML it’s so easy to program the skin and stay in MXML for the most part. The only thing that I actually needed to program was how the elements are laid out. </p>
<p>The basic List skin looks like this:</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">s:states</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">s:State</span> <span class="attr">name</span><span class="kwrd">=&quot;normal&quot;</span><span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">s:State</span> <span class="attr">name</span><span class="kwrd">=&quot;hover&quot;</span><span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">s:State</span> <span class="attr">name</span><span class="kwrd">=&quot;disabled&quot;</span><span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">s:states</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">fx:Metadata</span><span class="kwrd">&gt;</span>[HostComponent(&quot;spark.components.List&quot;)]<span class="kwrd">&lt;/</span><span class="html">fx:Metadata</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">s:DataGroup</span> <span class="attr">itemRenderer</span><span class="kwrd">=&quot;components.RepeatedItem1&quot;</span>
        <span class="attr">clipAndEnableScrolling</span><span class="kwrd">=&quot;true&quot;</span>  <span class="attr">id</span><span class="kwrd">=&quot;dataGroup&quot;</span>
        <span class="attr">rollOver</span><span class="kwrd">=&quot;currentState='hover'&quot;</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">s:layout</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">components:LargeCircleLayout</span> <span class="attr">id</span><span class="kwrd">=&quot;myLayout&quot;</span> <span class="attr">radius</span><span class="kwrd">=&quot;1400&quot;</span>
            <span class="attr">stepAngle</span><span class="kwrd">=&quot;0&quot;</span> <span class="attr">stepAngle</span>.<span class="attr">hover</span><span class="kwrd">=&quot;3.5&quot;</span><span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">s:layout</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">s:DataGroup</span><span class="kwrd">&gt;</span>&#160;</pre>
<p>Notice that it’s nothing but a DataGroup that has a layout. I’ve also added the Hover state to be able to open the list when you hover over it. </p>
<p>To add the nice effect it’s just a matter of animating one layout property:<br />
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">s:transitions</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">s:Transition</span> <span class="attr">autoReverse</span><span class="kwrd">=&quot;true&quot;</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">s:Animate</span> <span class="attr">target</span><span class="kwrd">=&quot;{myLayout}&quot;</span> <span class="attr">duration</span><span class="kwrd">=&quot;200&quot;</span><span class="kwrd">&gt;</span>
            <span class="kwrd">&lt;</span><span class="html">s:SimpleMotionPath</span> <span class="attr">property</span><span class="kwrd">=&quot;stepAngle&quot;</span><span class="kwrd">/&gt;</span>
        <span class="kwrd">&lt;/</span><span class="html">s:Animate</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">s:Transition</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">s:transitions</span><span class="kwrd">&gt;</span></pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</p>
<p>You can take a look at the source code <a href="http://miti.pricope.com/samples/listGumbo1/srcview/index.html">here</a> and watch the list <a href="http://miti.pricope.com/samples/listGumbo1/small3.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2009/05/29/playing-with-custom-layout-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Adding Desktop functionality to Web Applications (My MAX Milan DW + AIR sample)</title>
		<link>http://miti.pricope.com/2008/12/10/adding-desktop-functionality-to-web-applications-my-max-milan-dw-air-sample/</link>
		<comments>http://miti.pricope.com/2008/12/10/adding-desktop-functionality-to-web-applications-my-max-milan-dw-air-sample/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 10:53:15 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[air]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/2008/12/10/adding-desktop-functionality-to-web-applications-my-max-milan-dw-air-sample/</guid>
		<description><![CDATA[One of my MAX Milan session was on how you develop AIR applications using Dreamweaver CS4. During this talk I&#8217;ve took a web application (actually I copy paste a sample of using the MSN Messenger JavaScript API) and add it some Desktop capabilities. So the little sample AIR MSN messenger now display notification when your [...]]]></description>
			<content:encoded><![CDATA[<p>One of my MAX Milan session was on how you develop AIR applications using Dreamweaver CS4. During this talk I&#8217;ve took a web application (actually I copy paste <a href="http://messenger.mslivelabs.com/samples/HelloWorld/JavaScript/WebSite/default.htm">a sample</a> of using the MSN Messenger JavaScript API) and add it some Desktop capabilities. So the little sample AIR MSN messenger now display notification when your friends will change their status message. The notification library I used is <a href="http://code.google.com/p/as3notificationlib/">as3notificationlib</a> done by <a href="http://weblogs.macromedia.com/cantrell/">Christian Cantrell</a> so you can see how easy is to call Flash code from JavaScript inside the AIR runtime.</p>
<p>You can also test the msg.html (sandbox/msg.html) file inside a browser (doesn&#8217;t seems to work on Mozilla, or on my Mozilla). The code that pushes the notification in AIR is located at line 204 and is the only modification that I&#8217;ve done to the original MSN Messenger sample.</p>
<p>You can download the code from <a href="http://miti.pricope.com/samples/msnonAir/msnonAir.zip">here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/12/10/adding-desktop-functionality-to-web-applications-my-max-milan-dw-air-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug Flex and .NET using ASP.NET Development Server</title>
		<link>http://miti.pricope.com/2008/07/29/debug-flex-and-net-using-aspnet-development-server/</link>
		<comments>http://miti.pricope.com/2008/07/29/debug-flex-and-net-using-aspnet-development-server/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 09:21:30 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[debugging]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=9</guid>
		<description><![CDATA[If you followed my previous post you probably now have a Flex + .NET project that makes a WebService call. If not, here&#8217;s a project you can use testDotNet.zip. To import this in Flex Builder choose File-&#62;Import-&#62;Flex Project and follow the steps. Next open Visual Web Developer and open a Web Site in the same [...]]]></description>
			<content:encoded><![CDATA[<p>If you followed my previous post you probably now have a Flex + .NET project that makes a WebService call. If not, here&#8217;s a project you can use <a href="http://miti.pricope.com/wp-content/uploads/2008/07/testdotnet.zip" target="_self">testDotNet.zip</a>. To import this in Flex Builder choose File-&gt;Import-&gt;Flex Project and follow the steps.</p>
<p>Next open Visual Web Developer and open a Web Site in the same location as the Flex Builder project.  Open web.config and make sure you have &lt;compilation debug=&#8221;true&#8221;&gt; (this inserts debugging symbols for the .NET code).</p>
<p>Now we need to use the same ASP.NET Developer Server for both the Flex Builder and Visual Web Developer. Since by default both tools try to start one instance we need a little trick to do that:</p>
<p>Start the MXML project through Flex Builder; this will start ASP.NET Developer Server usually on port 3000. Then go to Visual Web Developer; on Project Property Page (Right Click on the Project in the Solution Explorer) click Start Options and select Use Custom Server and enter <a title="http://localhost:3000/testDotNet/" href="http://localhost:3000/testDotNet/">http://localhost:3000/testDotNet/</a></p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image3.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://miti.pricope.com/wp-content/uploads/2008/07/image-thumb3.png" border="0" alt="image" width="582" height="340" /></a></p>
<p>Start also the .NET project just to connect the Visual Web Developer to the ASP.NET Developer Server instance. Now you will be able to debug both Flex and .NET code:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://miti.pricope.com/wp-content/uploads/2008/07/image-thumb4.png" border="0" alt="image" width="505" height="388" /></a></p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image5.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://miti.pricope.com/wp-content/uploads/2008/07/image-thumb5.png" border="0" alt="image" width="505" height="358" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/07/29/debug-flex-and-net-using-aspnet-development-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DataGrid &#8211; Confirm a Grid change event using an Alert popup</title>
		<link>http://miti.pricope.com/2008/07/09/datagrid-canceling-a-grid-change-event-using-an-alert-popup/</link>
		<comments>http://miti.pricope.com/2008/07/09/datagrid-canceling-a-grid-change-event-using-an-alert-popup/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 10:04:33 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=29</guid>
		<description><![CDATA[Today I saw an interesting post on FlexCoders. Suppose you have an editable DataGrid and you want to confirm through an Alert if the change should be made or not. Preventing the change is easy, you just need hook onto the itemEditEnd and call event.preventDefault(). The problem arises when you want to confirm this with [...]]]></description>
			<content:encoded><![CDATA[<p>Today I saw an interesting post on FlexCoders. Suppose you have an editable DataGrid and you want to confirm through an Alert if the change should be made or not. Preventing the change is easy, you just need hook onto the itemEditEnd and call event.preventDefault(). The problem arises when you want to confirm this with the user using an Alert. This is because the Alert.show call is asynchronous. This means that the grid event will complete before the user can choose Yes or No.</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">public</span> <span style="color: #0000ff;">function</span> editEnd(<span style="color: #0000ff;">event</span> <img src='http://miti.pricope.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ataGridEvent):<span style="color: #0000ff;">void</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">  Alert.show(<span style="color: #006080;">"Do you want to save changes?"</span>,<span style="color: #006080;">"Save changes"</span>,Alert.YES | Alert.NO,<span style="color: #0000ff;">null</span>,<span style="color: #0000ff;">function</span>(ev:CloseEvent):<span style="color: #0000ff;">void</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      <span style="color: #0000ff;">if</span> (ev.detail == Alert.YES) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #008000;">//LABEL2: This will be reached long after the LABEL1 has been reached. </span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #008000;">//So at this point the grid has been executed the default behavior for the change event</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">    });</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">    <span style="color: #008000;">//LABEL1: Because of the asynchronous nature this will be reached right after the Alert.show call    </span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">}</pre>
</div>
</div>
<p>So my idea of solving this was to save the new value, prevent the default grid behavior of updating the dataProvider and update the data provider manually on the Alert.show closeHandler.</p>
<p>Here is some code that illustrates this:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;?</span><span style="color: #800000;">xml</span> <span style="color: #ff0000;">version</span><span style="color: #0000ff;">="1.0"</span> <span style="color: #ff0000;">encoding</span><span style="color: #0000ff;">="utf-8"</span>?<span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:WindowedApplication</span> <span style="color: #ff0000;">xmlns:mx</span><span style="color: #0000ff;">="http://www.adobe.com/2006/mxml"</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #ff0000;">initialize</span><span style="color: #0000ff;">="initData()"</span> <span style="color: #ff0000;">layout</span><span style="color: #0000ff;">="absolute"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">  <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:Script</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">   <span style="color: #0000ff;">&lt;!</span>[CDATA[</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">       import mx.controls.TextInput;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">       import mx.controls.Alert;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">    import mx.collections.*;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">    import mx.events.*;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      private var DGArray:Array = [</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">         {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">         {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99}];</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      [Bindable]</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      public var initDG:ArrayCollection;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      public function initData():void {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">         initDG=new ArrayCollection(DGArray);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      public function editEnd(event:DataGridEvent):void {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">          //Save the data before calling Alert</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        var myEditor:TextInput =</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">                    TextInput(event.currentTarget.itemEditorInstance);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        // Get the new value from the editor.</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        var newVal:String = myEditor.text;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        var dataObject:Object = event.itemRenderer.data;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        var property:String = event.dataField;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        Alert.show("Do you want to save changes?","Save changes",Alert.YES | Alert.NO,null,function(ev:CloseEvent):void {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">            //If we have clicked YES then update the data collection manually</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">            if (ev.detail == Alert.YES) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">                  dataObject[property] = newVal.toString();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">                  initDG.itemUpdated(dataObject,property);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">            }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">          });</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">          //prevent data grid to update his dataProvider collection</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">          event.preventDefault();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">   ]]<span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">   <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:Script</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">   <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGrid</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="myGrid"</span> <span style="color: #ff0000;">width</span><span style="color: #0000ff;">="350"</span> <span style="color: #ff0000;">height</span><span style="color: #0000ff;">="200"</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      <span style="color: #ff0000;">dataProvider</span><span style="color: #0000ff;">="{initDG}"</span> <span style="color: #ff0000;">editable</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">itemEditEnd</span><span style="color: #0000ff;">="editEnd(event)"</span> <span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:columns</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">         <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGridColumn</span> <span style="color: #ff0000;">dataField</span><span style="color: #0000ff;">="Album"</span> <span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">         <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGridColumn</span> <span style="color: #ff0000;">dataField</span><span style="color: #0000ff;">="Price"</span> <span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:columns</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">   <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:DataGrid</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">   <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGrid</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="readOnlyGrid"</span> <span style="color: #ff0000;">width</span><span style="color: #0000ff;">="350"</span> <span style="color: #ff0000;">height</span><span style="color: #0000ff;">="200"</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      <span style="color: #ff0000;">dataProvider</span><span style="color: #0000ff;">="{initDG}"</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="0"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="208"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">      <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:columns</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">         <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGridColumn</span> <span style="color: #ff0000;">dataField</span><span style="color: #0000ff;">="Album"</span> <span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">         <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:DataGridColumn</span> <span style="color: #ff0000;">dataField</span><span style="color: #0000ff;">="Price"</span> <span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">      <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:columns</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">   <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:DataGrid</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">mx:WindowedApplication</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/07/09/datagrid-canceling-a-grid-change-event-using-an-alert-popup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS and Flex Project trick</title>
		<link>http://miti.pricope.com/2008/07/07/as-and-flex-project-trick/</link>
		<comments>http://miti.pricope.com/2008/07/07/as-and-flex-project-trick/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 10:03:23 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[flash builder]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=28</guid>
		<description><![CDATA[A few days ago I was trying to use the FDS AJAX Bridge to push some messages in an AJAX grid. So I created a Flex + WTP + BlazeDS project and went to change the default Application from the default MXML file to my FDMSBridge.as (The 1&#215;1 pixel SWF). Guess what? You can&#8217;t add [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I was trying to use the FDS AJAX Bridge to push some messages in an AJAX grid. So I created a <a href="http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/">Flex + WTP + BlazeDS</a> project and went to change the default Application from the default MXML file to my FDMSBridge.as (The 1&#215;1 pixel SWF). Guess what? You can&#8217;t add AS files, only MXML ones</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/image9.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://miti.pricope.com/wp-content/uploads/2008/10/image-thumb6.png" border="0" alt="image" width="532" height="465" /></a></p>
<p>This might be a little bug, but I found a workaround. I manually edited .actionScriptProperties file and in the &lt;application&gt; section added the FDMSBridge.as:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;?</span><span style="color: #800000;">xml</span> <span style="color: #ff0000;">version</span><span style="color: #0000ff;">="1.0"</span> <span style="color: #ff0000;">encoding</span><span style="color: #0000ff;">="UTF-8"</span>?<span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">actionScriptProperties</span> <span style="color: #ff0000;">mainApplicationPath</span><span style="color: #0000ff;">="testBlaze.mxml"</span> <span style="color: #ff0000;">version</span><span style="color: #0000ff;">="3"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">compiler</span> <span style="color: #ff0000;">additionalCompilerArguments</span><span style="color: #0000ff;">="-services "C:/work/wksp/samples/testBlaze/WebContent/WEB-INF/flex/services-config.xml" -locale en_US"</span> <span style="color: #ff0000;">copyDependentFiles</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">enableModuleDebug</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">generateAccessible</span><span style="color: #0000ff;">="false"</span> <span style="color: #ff0000;">htmlExpressInstall</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">htmlGenerate</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">htmlHistoryManagement</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">htmlPlayerVersion</span><span style="color: #0000ff;">="9.0.28"</span> <span style="color: #ff0000;">htmlPlayerVersionCheck</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">outputFolderPath</span><span style="color: #0000ff;">="bin-debug"</span> <span style="color: #ff0000;">rootURL</span><span style="color: #0000ff;">="http://localhost:8080/testBlaze"</span> <span style="color: #ff0000;">sourceFolderPath</span><span style="color: #0000ff;">="flex_src"</span> <span style="color: #ff0000;">strict</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">useApolloConfig</span><span style="color: #0000ff;">="false"</span> <span style="color: #ff0000;">verifyDigests</span><span style="color: #0000ff;">="true"</span> <span style="color: #ff0000;">warn</span><span style="color: #0000ff;">="true"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">compilerSourcePath</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">libraryPath</span> <span style="color: #ff0000;">defaultLinkType</span><span style="color: #0000ff;">="1"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">libraryPathEntry</span> <span style="color: #ff0000;">kind</span><span style="color: #0000ff;">="4"</span> <span style="color: #ff0000;">path</span><span style="color: #0000ff;">=""</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">libraryPathEntry</span> <span style="color: #ff0000;">kind</span><span style="color: #0000ff;">="1"</span> <span style="color: #ff0000;">linkType</span><span style="color: #0000ff;">="1"</span> <span style="color: #ff0000;">path</span><span style="color: #0000ff;">="flex_libs"</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">libraryPath</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">sourceAttachmentPath</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">compiler</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">applications</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f400; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">application</span> <span style="color: #ff0000;">path</span><span style="color: #0000ff;">="FDMSBridge.as"</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">application</span> <span style="color: #ff0000;">path</span><span style="color: #0000ff;">="testBlaze.mxml"</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">applications</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">modules</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">buildCSSFiles</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">actionScriptProperties</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>Now the FDMSBridge.as should be compiled as a normal Flex application:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/image10.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://miti.pricope.com/wp-content/uploads/2008/10/image-thumb7.png" border="0" alt="image" width="581" height="364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/07/07/as-and-flex-project-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
