<?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; flash builder</title>
	<atom:link href="http://miti.pricope.com/category/flash-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://miti.pricope.com</link>
	<description>about technology</description>
	<lastBuildDate>Fri, 24 Dec 2010 16:42:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.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>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>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>1</slash:comments>
		</item>
		<item>
		<title>Using Import Web Service wizard to connect Flex to .NET</title>
		<link>http://miti.pricope.com/2008/07/28/using-import-web-service-wizard-to-connect-flex-to-net/</link>
		<comments>http://miti.pricope.com/2008/07/28/using-import-web-service-wizard-to-connect-flex-to-net/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:19:45 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=8</guid>
		<description><![CDATA[Since I was deeply involved in Flex Builder support for working with .NET I thought that it would be a good idea to write some articles on how you can use these technologies together. I will create a &#8220;Hello World&#8221; project but the focus will be on how you can better make use of the [...]]]></description>
			<content:encoded><![CDATA[<p>Since I was deeply involved in Flex Builder support for working with .NET I thought that it would be a good idea to write some articles on how you can use these technologies together. I will create a &#8220;Hello World&#8221; project but the focus will be on how you can better make use of the available tools.</p>
<p>For tooling I will be using Flex Builder and Visual Web Developer 2008 Express Edition (VWD).</p>
<p>First let&#8217;s create a simple ASP.NET Web Service project using VWD:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image2.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-thumb2.png" border="0" alt="image" width="520" height="320" /></a></p>
<p>I slightly modified the HelloWorld method in Service.cs to receive a parameter:</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">[WebMethod]</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;">public</span> <span style="color: #0000ff;">string</span> HelloWorld(String name) {</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;">return</span> <span style="color: #006080;">"Hello "</span> + name + <span style="color: #006080;">"! Nice talking to you!"</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>
</div>
</div>
<p>Now let&#8217;s get into Flex Builder and try to get something from the .NET Server. First we will create a new Flex Project on top of the .NET one. To do that click on New-&gt;Flex Project and choose ASP.NET as the server technology:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image11.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/image11-thumb.png" border="0" alt="image" width="380" height="400" /></a></p>
<p>Make sure the location is the same as the VWD .NET project. Now run the default MXML file to start the ASP.NET Developer Server.</p>
<p>Next we will generate the glue code for calling the Web Service using the Import Web Service Wizard. Choose Data -&gt; Import Web Service (WSDL) from the Flex Builder menu. On the first page the main source folder is selected by default. You can leave it like this. On the second page you need to choose the WSDL URI. When you launched the MXML application the ASP.NET Developer Server should have started by default on port 3000 (see the tray icon). In this case the WSDL URL should be something like <a title="http://localhost:2266/testDotNet2/Service.asmx?WSDL" href="http://localhost:3000/testDotNet/Service.asmx?WSDL">http://localhost:3000/testDotNet/Service.asmx?WSDL</a>.</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image14.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/image14-thumb.png" border="0" alt="image" width="354" height="367" /></a></p>
<p>The third page should look like this:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/07/image18.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/image18-thumb.png" border="0" alt="image" width="378" height="330" /></a></p>
<p>Now you should have some typed AS classes that provide easy access the .NET Web Service methods. The cool thing about this is that Flex Builder knows now how to do autocompletion on Web Service calls. So making a little application that will showcase this is just too easy:</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:Application</span> <span style="color: #ff0000;">xmlns:mx</span><span style="color: #0000ff;">="http://www.adobe.com/2006/mxml"</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: white; 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: #f4f4f4; 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: 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 generated.webservices.HelloWorldResultEvent;</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 generated.webservices.Service;</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 function sayHello():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">                var service:Service = new Service();</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">                service.addhelloWorldEventListener(</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">                    function (event:HelloWorldResultEvent):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">                        Alert.show(event.result);</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">                service.helloWorld(myName.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">            }</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;">&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: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: #f4f4f4; border-bottom-style: none">    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:TextInput</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="176"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="171"</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="myName"</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:Text</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="70"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="173"</span> <span style="color: #ff0000;">text</span><span style="color: #0000ff;">="Enter Your Name"</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:Button</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="344"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="171"</span> <span style="color: #ff0000;">label</span><span style="color: #0000ff;">="Click to receive greeting"</span> <span style="color: #ff0000;">click</span><span style="color: #0000ff;">="sayHello()"</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:Application</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/07/28/using-import-web-service-wizard-to-connect-flex-to-net/feed/</wfw:commentRss>
		<slash:comments>12</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>
		<item>
		<title>Debugging Flex and PHP with Flex Builder and Zend Studio</title>
		<link>http://miti.pricope.com/2008/06/06/debugging-flex-and-php-with-flex-builder-and-zend-studio/</link>
		<comments>http://miti.pricope.com/2008/06/06/debugging-flex-and-php-with-flex-builder-and-zend-studio/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 09:58:12 +0000</pubDate>
		<dc:creator>mpricope</dc:creator>
				<category><![CDATA[debugging]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://miti.pricope.com/?p=22</guid>
		<description><![CDATA[So I am a big fan of debugging. I know that for most people this isn&#8217;t exactly what they get out of the bed in the morning, but nevertheless I know that this prevents them going to sleep in the evening. My first thing when I look into a technology and it&#8217;s tools ecosystem is [...]]]></description>
			<content:encoded><![CDATA[<p>So I am a big fan of debugging. I know that for most people this isn&#8217;t exactly what they get out of the bed in the morning, but nevertheless I know that this prevents them going to sleep in the evening. My first thing when I look into a technology and it&#8217;s tools ecosystem is &#8220;how will I debug this?&#8221;. I find more useful to spend some time configuring my environment for debug earlier in the project rather than later, when things might get hotter.</p>
<p>These days I was looking into Flex and PHP and naturally I started by trying to configure my environment so I can debug this. My goal was to be able to to debug both Flex code and PHP code, to track the dataflow through a server request. I&#8217;ve tried different solutions, and here is the simpler one:</p>
<h4>Solution</h4>
<p>First installed Zend Studio for Eclipse (<a title="http://www.zend.com/en/products/studio/downloads" href="http://www.zend.com/en/products/studio/downloads">http://www.zend.com/en/products/studio/downloads</a>). Make sure you install also the Zend Studio Toolbar for your browser.</p>
<p>Next installed the Flex Builder Plugin from (<a title="http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipse" href="http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipse">http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipse</a>) and choose as Eclipse location the folder where you installed Zend Studio (Usually c:\Program Files\Zend\Zend Studio for Eclipse &#8211; 6.0.0\ for my Windows machine). You might get the following warning:</p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/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/10/image-thumb.png" border="0" alt="image" width="376" height="375" /></a></p>
<p>You just need to follow the 3 steps and it should be fine.</p>
<p>The next thing is to install the Zend Debugger server. I found a good tutorial <a href="http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_Installation_:_Installing_the_Zend_Debugger#Installing_Zend_Debugger_server">here</a> so I will not get into much detail.</p>
<p>Now we will create a combined Flex + PHP Project:</p>
<ul>
<li>New -&gt; Flex Project</li>
<li>Choose PHP as Application Server Type</li>
</ul>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/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/10/image-thumb1.png" border="0" alt="image" width="497" height="484" /></a></p>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/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/10/image-thumb2.png" border="0" alt="image" width="497" height="484" /></a></p>
<p>I will use the following MXML File:</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:Application</span> <span style="color: #ff0000;">xmlns:mx</span><span style="color: #0000ff;">="http://www.adobe.com/2006/mxml"</span> <span style="color: #ff0000;">layout</span><span style="color: #0000ff;">="absolute"</span> <span style="color: #ff0000;">applicationComplete</span><span style="color: #0000ff;">="initApp()"</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: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: #f4f4f4; 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: white; border-bottom-style: none">            import mx.rpc.events.ResultEvent;</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.rpc.http.HTTPService;</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 gateway:HTTPService = new HTTPService();</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">            function initApp() {</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">                gateway.url = "hello.php";</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">                gateway.method = "POST";</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">                gateway.useProxy = false;</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">                gateway.addEventListener(ResultEvent.RESULT, resultHandler);</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">            function sendRequest():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">                gateway.request =  {"name":enteredName.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: #f4f4f4; border-bottom-style: none">                gateway.send();</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">            function resultHandler(e:ResultEvent):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">                myText.text = e.result.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">            }</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">    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">mx:Button</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="301.5"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="10"</span> <span style="color: #ff0000;">label</span><span style="color: #0000ff;">="Send"</span> <span style="color: #ff0000;">click</span><span style="color: #0000ff;">="sendRequest()"</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:Text</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="myText"</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="10"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="62"</span> <span style="color: #ff0000;">width</span><span style="color: #0000ff;">="493"</span> <span style="color: #ff0000;">height</span><span style="color: #0000ff;">="181"</span> <span style="color: #ff0000;">fontFamily</span><span style="color: #0000ff;">="Arial"</span> <span style="color: #ff0000;">fontSize</span><span style="color: #0000ff;">="36"</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:Label</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="10"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="12"</span> <span style="color: #ff0000;">text</span><span style="color: #0000ff;">="Enter Your Name:"</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:TextInput</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="enteredName"</span> <span style="color: #ff0000;">x</span><span style="color: #0000ff;">="121"</span> <span style="color: #ff0000;">y</span><span style="color: #0000ff;">="10"</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:Application</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"></pre>
</div>
</div>
<p>and a little hello.php.</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">&lt;?php</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">    $name = $_POST[<span style="color: #006080;">'name'</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">    echo <span style="color: #006080;">"Hello $name !"</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">?&gt;</pre>
</div>
</div>
<p>As a little note, I create the PHP files directly in the bin-debug folder which is a link to the real folder on your local Web Server.</p>
<p>Now to debug the whole thing:</p>
<ul>
<li>From the Flex perspective I choose <strong>Debug As -&gt; Flex Application</strong>.</li>
<li>On the browser go on the Zend Studio Toobar and click on <strong>Debug</strong>.</li>
<li>If there are checked menu items uncheck them first.</li>
<li>Check the <strong>All Pages on this site</strong></li>
</ul>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/image6.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-thumb3.png" border="0" alt="image" width="244" height="171" /></a></p>
<ul>
<li>put some breakpoints both in flex and in php code:</li>
</ul>
<p><a href="http://miti.pricope.com/wp-content/uploads/2008/10/image7.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-thumb4.png" border="0" alt="image" width="674" height="198" /></a> <a href="http://miti.pricope.com/wp-content/uploads/2008/10/image8.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-thumb5.png" border="0" alt="image" width="343" height="135" /></a></p>
<ul>
<li>Now when you click the <strong>Send</strong> button in the application you will hit both breakpoints.</li>
</ul>
<p>I will try to get this working also with Flex Builder and PDT and post an eventual solution. I managed to get something working with Zend Server Debugger with it&#8217;s too unstable to call it a solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://miti.pricope.com/2008/06/06/debugging-flex-and-php-with-flex-builder-and-zend-studio/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

