<?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>FLEX{er} &#187; Flex 2</title>
	<atom:link href="http://www.flexer.info/category/flex-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:54:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://www.flexer.info</link>
  <url>http://www.flexer.info/favicon.ico</url>
  <title>FLEX{er}</title>
</image>
		<item>
		<title>How It&#8217;s Made &#8211; Mark Anders</title>
		<link>http://www.flexer.info/2010/01/21/how-its-made-mark-anders/</link>
		<comments>http://www.flexer.info/2010/01/21/how-its-made-mark-anders/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 13:40:05 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[Conferences, Meetings & Events]]></category>
		<category><![CDATA[Flash Catalyst]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3 SDK]]></category>
		<category><![CDATA[Flex 4 SDK]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Flex IDE]]></category>
		<category><![CDATA[Flex in the world]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[Flex Catalyst]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=1365</guid>
		<description><![CDATA[Wednesday, 27th of January, in Bucharest, Mark Anders, the creator of Flash Catalyst will tell us how Flash Catalyst appeared and how it got done. For anyone who doesn&#8217;t know about him, Mark Anders is a major contributor for the whole Adobe Flex platform.
The meeting starts at 6 PM but we will start gather and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2010%2F01%2F21%2Fhow-its-made-mark-anders%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2010%2F01%2F21%2Fhow-its-made-mark-anders%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2010/01/21/how-its-made-mark-anders/&title=How+It&#8217;s+Made+&#8211;+Mark+Anders&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Wednesday, 27th of January, in Bucharest, <a href="http://www.andersblog.com/" target="_blank">Mark Anders</a>, the creator of <a href="http://labs.adobe.com/technologies/flashcatalyst/" target="_blank">Flash Catalyst</a> will tell us how Flash Catalyst appeared and how it got done. For anyone who doesn&#8217;t know about him, Mark Anders is a major contributor for the whole Adobe Flex platform.</p>
<p>The meeting starts at 6 PM but we will start gather and 5:30 PM and it will be mostly an opened discussion. Mark will tell us what&#8217;s behind the scenes not only for Flash Catalyst but also for other Flex related products. </p>
<p>For registration go on MyAdobe, <a href="http://myadobe.ro/2010/01/21/how-its-made-versiunea-adobe/" target="_blank">http://myadobe.ro/2010/01/21/how-its-made-versiunea-adobe/</a> (Romanian only).</p>
<p>Hope to see you all there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2010/01/21/how-its-made-mark-anders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tour de Flex</title>
		<link>http://www.flexer.info/2009/05/27/tour-de-flex/</link>
		<comments>http://www.flexer.info/2009/05/27/tour-de-flex/#comments</comments>
		<pubDate>Wed, 27 May 2009 07:31:41 +0000</pubDate>
		<dc:creator>Stelian Crisan</dc:creator>
				<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex resources]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[Tour de Flex]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=789</guid>
		<description><![CDATA[As a was write the post about Tour de LiveCycle I just realize that we don&#8217;t have a post about Tour de Flex. So &#8230; 
I use Tour de Flex from last year and I got what I need some times. It&#8217;s a tool for large use but it&#8217;s all you need in order to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F05%2F27%2Ftour-de-flex%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F05%2F27%2Ftour-de-flex%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2009/05/27/tour-de-flex/&title=Tour+de+Flex&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>As a was write the post about <a href="http://www.flexer.info/2009/05/27/tour-de-livecycle/ ">Tour de LiveCycle</a> I just realize that we don&#8217;t have a post about Tour de Flex. So &#8230; </p>
<p>I use Tour de Flex from last year and I got what I need some times. It&#8217;s a tool for large use but it&#8217;s all you need in order to get the picture.</p>
<p>Tour de Flex has three primary goals in Adobe&#8217;s vision:</p>
<ol>
<li> Provide non-Flex developers with an overview of what is possible in Flex in a &#8220;look and see&#8221; environment </li>
<li> Provide Flex developers with an illustrated reference tool</li>
<li> Provide commercial and non-commercial Flex developers with a place to showcase their work</li>
</ol>
<p>
If you need more information and you want to download Tour de Flex please go to: <a href="http://www.adobe.com/devnet/flex/tourdeflex/">http://www.adobe.com/devnet/flex/tourdeflex/</a>.</p>
<p>There is a <a href="http://visudemos.ilog.com/tourdeflex/TdFDashboard/TourDeFlexDashboard.html" target="_blank">Dashboard</a> provided by ILog together with IBM where we can see how the Tour de Flex is accessed over the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2009/05/27/tour-de-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex Builder Rebranded into Flash Builder</title>
		<link>http://www.flexer.info/2009/05/21/flex-builder-rebranded-into-flash-builder/</link>
		<comments>http://www.flexer.info/2009/05/21/flex-builder-rebranded-into-flash-builder/#comments</comments>
		<pubDate>Thu, 21 May 2009 14:44:07 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Flex IDE]]></category>
		<category><![CDATA[Flex in the world]]></category>
		<category><![CDATA[Flex news]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=772</guid>
		<description><![CDATA[Many of you may already know about the rebranding of Flex Builder. It will no longer be named Flex Builder but Flash Builder. Adobe took this action in order to make the Flash name (and platform) a stronger one. Flex will not disappear but it will remain as framework. Neither Flash IDE. I know many [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F05%2F21%2Fflex-builder-rebranded-into-flash-builder%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F05%2F21%2Fflex-builder-rebranded-into-flash-builder%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2009/05/21/flex-builder-rebranded-into-flash-builder/&title=Flex+Builder+Rebranded+into+Flash+Builder&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Many of you may already know about the rebranding of Flex Builder. It will no longer be named Flex Builder but Flash Builder. Adobe took this action in order to make the Flash name (and platform) a stronger one. Flex will not disappear but it will remain as framework. Neither Flash IDE. I know many of you have questions. This is what I found on <a href="http://www.leebrimelow.com/" target="_blank">Lee Brimelow blog</a>&#8230;</p>
<p><strong>Flash IDE will be discontinued?</strong><br />
Of course not. Flash authoring will continue to be the premiere tool for design and animation for the Flash Platform.</p>
<p><strong>Confusion when talking about Flex?</strong><br />
People should understant that Flex is an ActionScript framework for creating RIAs and that is not changing. This will make Flex brand more solid and understandable.</p>
<p><strong>Why not earlier?</strong><br />
Flex Builder was created to easy the creation of Flex framework projects. Over the years massive amount of people is using it for their pure ActionScript work.</p>
<p><strong>Will Flash Builder still be based on Eclipse?</strong><br />
Yes it will continue to be an Eclipse-based product.</p>
<p><strong>Too much tools for creating Flash content?</strong><br />
Animators and designers are used to the Flash IDE and like its focus on creating completely custom Flash experiences. Flash and Flex developers generally do not like spending their time in the Flash IDE and prefer to be in a powerful code-centric environment like Eclipse. </p>
<p><strong>Flex SDK?</strong><br />
It will not be renamed. </p>
<p>These are from <a href="http://theflashblog.com/?p=998" target="_blank">Lee Brimelow post</a>. You can read more over there. </p>
<p>In my opinion this is a good movement and by doing this Adobe will make many aware of the link between Flash and Flex, and that Flex is a framework on top of Flash platform.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2009/05/21/flex-builder-rebranded-into-flash-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number.toString bug</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/</link>
		<comments>http://www.flexer.info/2008/11/20/numbertostring-bug/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 09:35:16 +0000</pubDate>
		<dc:creator>Virgil Cristea</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[toString]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=326</guid>
		<description><![CDATA[Last week I had to write a small piece of code to send to a webservice a number from a text input. All was fine for the normal test values (0,1,100). The problem appeared when I tried to send the number -9223372036854775808. Instead of receiving this number I got -9223372036854776000.  So I started to do [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F11%2F20%2Fnumbertostring-bug%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F11%2F20%2Fnumbertostring-bug%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/11/20/numbertostring-bug/&title=Number.toString+bug&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Last week I had to write a small piece of code to send to a webservice a number from a text input. All was fine for the normal test values (0,1,100). The problem appeared when I tried to send the number <strong>-9223372036854775808</strong>. Instead of receiving this number I got <strong>-9223372036854776000</strong>.  So I started to do some debugging I saw that the problem was in the soap functions from the Flex SDK when they did a <strong>number.toString()</strong>.</p>
<p>I did a small test project to verify that the issue is with the toString() function. Here is the code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;160&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;70&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> stringValue:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;-9223372036854775808&quot;</span>;
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> numberValue:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#40;</span>stringValue<span style="color: #66cc66;">&#41;</span>;			
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> testToStringIssue<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				lbl.<span style="color: #0066CC;">text</span> = numberValue.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Label x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;{stringValue}&quot;</span> id=<span style="color: #ff0000;">&quot;lbl&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;36&quot;</span> label=<span style="color: #ff0000;">&quot;Button&quot;</span> click=<span style="color: #ff0000;">&quot;testToStringIssue();&quot;</span><span style="color: #66cc66;">/&gt;</span>	
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>As you see we first display the stringValue and that is ok. Then we do a number <strong>toString()</strong> and display that result.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_testtostringissue_1399487248"
			class="flashmovie"
			width="160"
			height="70">
	<param name="movie" value="/wp-content/uploads/2008/11/testtostringissue.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/2008/11/testtostringissue.swf"
			name="fm_testtostringissue_1399487248"
			width="160"
			height="70">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/11/20/numbertostring-bug/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flex Builder cannot locate the required version of Flash Player Error: Firefox &amp; FP 9.0.124</title>
		<link>http://www.flexer.info/2008/06/02/flex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124/</link>
		<comments>http://www.flexer.info/2008/06/02/flex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 09:36:55 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[flex builder]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=191</guid>
		<description><![CDATA[Today I upgraded my flash player to version 9.0.124 and I&#8217;m referring to the debug version of it. 
The upgrade went OK on IE, I downloaded the version for IE from Adobe&#8217;s download page (http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_ax_debug.exe), I installed it and everything worked out.
I was thinking: &#8220;Great! That was easy! Let&#8217;s do it for Firefox also&#8230;&#8221;. I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F06%2F02%2Fflex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F06%2F02%2Fflex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/06/02/flex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124/&title=Flex+Builder+cannot+locate+the+required+version+of+Flash+Player+Error:+Firefox+&#038;+FP+9.0.124&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Today I upgraded my flash player to version 9.0.124 and I&#8217;m referring to the debug version of it. </p>
<p>The upgrade went OK on IE, I downloaded the version for IE from Adobe&#8217;s download page (<a href="http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_ax_debug.exe" target="_blank">http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_ax_debug.exe</a>), I installed it and everything worked out.</p>
<p>I was thinking: &#8220;Great! That was easy! Let&#8217;s do it for Firefox also&#8230;&#8221;. I had a previous bad experience trying to upgrade the flash player which ended in reinstalling the Flex Builder but seeing that on IE was very easy I upgraded it also for Firefox. I downloaded the Firefox version from Adobe (<a href="http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_plugin_debug.exe" target="_blank">http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_plugin_debug.exe</a>) and installed it. Although the flash player installer had no errors and was saying that the install was complete when I tried to debug a project the following error occurred:</p>
<p><strong style="color:red">C:\Program Files\Mozilla Firefox\plugins\NPSWF32.dll</p>
<p>Flex Builder cannot locate the required version of the Flash Player. You may need to install Flash Player 9.0 or reinstall Flex Builder. Do you want to try to run your application with the current version?</strong></p>
<p>I think many of you got this error. I pressed <strong>YES</strong> and I expected not be able to debug but Flex Builder did catch the errors displaying them in console view (also tried breakpoints and that is working). That was somehow strange&#8230; </p>
<p>That means that Flex Builder is looking for the debug version of flash player elsewhere than where it was installed. The flash player package is installing files in <strong>C:\WINDOWS\system32\Macromed\Flash</strong> but Flex Builder is looking for it in <strong>C:\Program Files\Mozilla Firefox\plugins</strong>. I just copied the file from <strong>C:\WINDOWS\system32\Macromed\Flash</strong> to <strong>C:\Program Files\Mozilla Firefox\plugins</strong> and the error disappeared.</p>
<p>One important notice: I was using Flex Builder 2.</p>
<p>Some resources:<br />
<a href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">Adobe Flash Player download page</a><br />
<a href="http://www.adobe.com/products/flash/about" target="_blank">About your installed flash player</a><br />
<a href="http://www.actionscript.org/forums/showthread.php3?t=145749" target="_blank">Other got into this also</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/06/02/flex-builder-cannot-locate-the-required-version-of-flash-player-error-firefox-fp-90124/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Override classes from included libraries</title>
		<link>http://www.flexer.info/2008/05/11/override-classes-from-included-libraries/</link>
		<comments>http://www.flexer.info/2008/05/11/override-classes-from-included-libraries/#comments</comments>
		<pubDate>Sun, 11 May 2008 07:59:37 +0000</pubDate>
		<dc:creator>Virgil Cristea</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.flexer.info/2008/05/11/override-classes-from-included-libraries/</guid>
		<description><![CDATA[During last week I had to do a small application for AIR. That was until friday when I had to release it and found out that the app had to work also in normal browser. Since almost all the code was independent of the type of app (AIR/Flex) my task was pretty easy:

Get all existing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F05%2F11%2Foverride-classes-from-included-libraries%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F05%2F11%2Foverride-classes-from-included-libraries%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/05/11/override-classes-from-included-libraries/&title=Override+classes+from+included+libraries&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>During last week I had to do a small application for AIR. That was until friday when I had to release it and found out that the app had to work also in normal browser. Since almost all the code was independent of the type of app (AIR/Flex) my task was pretty easy:</p>
<ul class="ul">
<li>Get all existing code into an external library</li>
<li>Update the AIR program to use that library and remove all other code except the main function</li>
<li>Create a Flex App to use the new library</li>
</ul>
<p>One problem that I found was that my library that was initially written for AIR had some references to the FILE object<br />
that is not available in a normal Flex App. So I had to override my library class to use SharedObjects instead of FILE.</p>
<p>So here is a quick tutorial on how to override a class inside a library (any library &#8211; even the flex framework one):</p>
<ol>
<li>First locate the exact name of the package you want to override.<br />
    Ex: info.flexer.common.storage.Settings (settings beeing the class I have problems with)</li>
<li>In your app create the folder structure info/flexer/common/storage/</li>
<li>Copy in this path the Settings.as and modify it as you want.</li>
</ol>
<p>Once you build the project the class you placed in your program will override the one that is in the library.</p>
<p>This only works if the library is merged into code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/05/11/override-classes-from-included-libraries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTML Tags And Attributes Supported by Flash Player</title>
		<link>http://www.flexer.info/2008/05/08/html-tags-and-attributes-supported-by-flash-player/</link>
		<comments>http://www.flexer.info/2008/05/08/html-tags-and-attributes-supported-by-flash-player/#comments</comments>
		<pubDate>Thu, 08 May 2008 14:23:21 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Flex resources]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[html enabled]]></category>
		<category><![CDATA[htmltext]]></category>
		<category><![CDATA[Rich Text Editor]]></category>
		<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=167</guid>
		<description><![CDATA[Bellow you can find a list tags and their attributes that are supported by flash player (and also by flex framework). This list applies to TextArea, TextFields and other controls that are html enabled.
Anchor tag (&#60;a&#62;)
Creates a hypertext link.

href
target

Bold tag (&#60;b&#62;)
Renders text as bold.
Break tag (&#60;br&#62;)
Creates a line break in the text field.
Font tag (&#60;font&#62;)
Specifies [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F05%2F08%2Fhtml-tags-and-attributes-supported-by-flash-player%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F05%2F08%2Fhtml-tags-and-attributes-supported-by-flash-player%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/05/08/html-tags-and-attributes-supported-by-flash-player/&title=HTML+Tags+And+Attributes+Supported+by+Flash+Player&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Bellow you can find a list tags and their attributes that are supported by flash player (and also by flex framework). This list applies to <strong>TextArea</strong>, <strong>TextFields</strong> and other controls that are html enabled.</p>
<h4>Anchor tag (<span style="font-family:monospace">&lt;a&gt;</span>)</h4>
<p>Creates a hypertext link.</p>
<ul class="ul">
<li>href</li>
<li>target</li>
</ul>
<h4>Bold tag (<span style="font-family:monospace">&lt;b&gt;</span>)</h4>
<p>Renders text as bold.</p>
<h4>Break tag (<span style="font-family:monospace">&lt;br&gt;</span>)</h4>
<p>Creates a line break in the text field.</p>
<h4>Font tag (<span style="font-family:monospace">&lt;font&gt;</span>)</h4>
<p>Specifies a font or list of fonts to display the text.</p>
<ul class="ul">
<li>color</li>
<li>face</li>
<li>size</li>
</ul>
<h4>Image tag (<span style="font-family:monospace">&lt;img&gt;</span>)</h4>
<p>Lets you embed external JPEG files, SWF files, and movie clips.</p>
<ul class="ul">
<li>src</li>
<li>id</li>
<li>width</li>
<li>height</li>
<li>align</li>
<li>hspace</li>
<li>vspace</li>
<li>alt</li>
</ul>
<h4>Italic tag (<span style="font-family:monospace">&lt;i&gt;</span>)</h4>
<p>Displays the tagged text in italics.</p>
<h4>List item tag (<span style="font-family:monospace">&lt;li&gt;</span>)</h4>
<p>Places a bullet in front of the text that it encloses.</p>
<h4>Paragraph tag (<span style="font-family:monospace">&lt;p&gt;</span>)</h4>
<p>Creates a new paragraph.</p>
<ul class="ul">
<li>align</li>
<li>class</li>
</ul>
<h4>Span tag (<span style="font-family:monospace">&lt;span&gt;</span>)</h4>
<p>Available only for use with CSS text styles.</p>
<ul class="ul">
<li>class</li>
</ul>
<h4>Text format tag (<span style="font-family:monospace">&lt;textformat&gt;</span>)</h4>
<p>Lets you use a subset of paragraph formatting properties of the TextFormat class within HTML text fields.</p>
<ul class="ul">
<li>blockindent </li>
<li>indent</li>
<li>leading </li>
<li>leftmargin </li>
<li>rightmargin</li>
<li>tabstops </li>
</ul>
<h4>Underline tag (<span style="font-family:monospace">&lt;u&gt;</span>)</h4>
<p>Underlines the tagged text.</p>
<p>Some aspects need to be known&#8230; <strong>&lt;ol&gt;</strong> and <strong>&lt;ul&gt;</strong> are not supported by flash player and any of the two tags are rendered as bullets. As you already noticed the tags do no comply with new standards, they do not necessarily close as is should and tags without closing do not have <strong>/&gt;</strong> at the end.</p>
<p>More info about this is on Adobe Livedocs following this <a href="http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&#038;file=00001040.html" target="_blank">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/05/08/html-tags-and-attributes-supported-by-flash-player/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Converting a flex 2 app to air</title>
		<link>http://www.flexer.info/2008/04/23/converting-a-flex-2-app-to-air/</link>
		<comments>http://www.flexer.info/2008/04/23/converting-a-flex-2-app-to-air/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 12:35:56 +0000</pubDate>
		<dc:creator>Virgil Cristea</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[convert]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=147</guid>
		<description><![CDATA[Last week I tried to convert a small flex 2 application to air. It went pretty smooth with some minor exceptions that were fixed fast. So if you have a flex 2 app and did not do anything fancy in it then it all should work fine.
Keep in mind that flex 3 has some modifications [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F04%2F23%2Fconverting-a-flex-2-app-to-air%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F04%2F23%2Fconverting-a-flex-2-app-to-air%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/04/23/converting-a-flex-2-app-to-air/&title=Converting+a+flex+2+app+to+air&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Last week I tried to convert a small flex 2 application to air. It went pretty smooth with some minor exceptions that were fixed fast. So if you have a flex 2 app and did not do anything fancy in it then it all should work fine.<br />
Keep in mind that flex 3 has some modifications in the framework than flex 2.</p>
<p>These are the steps I took to convert the app.</p>
<p>1) Create a new empty AIR application<br />
2) copy old app files into the src dir of the new AIR app.<br />
3) build.<br />
4) installed FlexSpy to fix the small visual errors<br />
5) fixed all visual stuff<br />
6) removed FlexSpy<br />
7) exported the app<br />
 <img src='http://www.flexer.info/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> used the AIR badge to create an &#8220;installer&#8221; for the AIR app.</p>
<p>As you can see I had no problems with the logic or stuff functioning wrong (but I can not say that will not happen &#8211; it depends with each project.) </p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/04/23/converting-a-flex-2-app-to-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 360 Conference in Europe</title>
		<link>http://www.flexer.info/2008/02/19/flex-360-conference-in-europe/</link>
		<comments>http://www.flexer.info/2008/02/19/flex-360-conference-in-europe/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 13:16:54 +0000</pubDate>
		<dc:creator>Virgil Cristea</dc:creator>
				<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex in the world]]></category>
		<category><![CDATA[Flex news]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.flexer.info/2008/02/19/flex-360-conference-in-europe/</guid>
		<description><![CDATA[During 7-9 April 2008 there is a Flex meeting in Milano. Price 360 euros. More details here or here.
I may be there as well  .
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F02%2F19%2Fflex-360-conference-in-europe%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F02%2F19%2Fflex-360-conference-in-europe%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/02/19/flex-360-conference-in-europe/&title=Flex+360+Conference+in+Europe&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>During 7-9 April 2008 there is a Flex meeting in Milano. Price 360 euros. More details <a href="http://www.360conferences.com/downloads/EuropeSchedule.pdf" target="_blank">here</a> or <a href="http://360flexeurope.eventbrite.com/" target="_blank">here</a>.</p>
<p>I may be there as well <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/02/19/flex-360-conference-in-europe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex and PHP web-service</title>
		<link>http://www.flexer.info/2008/02/17/flex-and-php-web-service/</link>
		<comments>http://www.flexer.info/2008/02/17/flex-and-php-web-service/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 08:52:36 +0000</pubDate>
		<dc:creator>Virgil Cristea</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex resources]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.flexer.info/2008/02/17/flex-and-php-web-service/</guid>
		<description><![CDATA[Yesterday I had to do a small flex application that resided on a server with php. Since I required a connection to mysql I wanted to use the same class I did before to connect to web-services. But PHP does not support web-services (and WSDL) by default.
So after I did some search on the net [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents<!-- for Web Services - HowTo --></h3><ol><li><a href='http://www.flexer.info/2007/10/23/web-service-small-how-to/' title='Web Service small how-to'>Web Service small how-to</a></li><li>Flex and PHP web-service</li></ol></div> <div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F02%2F17%2Fflex-and-php-web-service%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F02%2F17%2Fflex-and-php-web-service%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/02/17/flex-and-php-web-service/&title=Flex+and+PHP+web-service&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Yesterday I had to do a small flex application that resided on a server with php. Since I required a connection to mysql I wanted to use the same class I did before to connect to web-services. But PHP does not support web-services (and WSDL) by default.</p>
<p>So after I did some search on the net I found this nice php class: NuSOAP. Here it is the small php webservice I did to test it all (file test.php):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Pull in the NuSOAP code</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'nusoap.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Define namespace to use</span>
<span style="color: #000088;">$ns</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://localhost/wsdlphp&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Create the server instance</span>
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> soap_server<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Configure WDSL response</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configureWSDL</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'hello'</span><span style="color: #339933;">,</span><span style="color: #000088;">$ns</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Set default namespace for output</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">wsdl</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">schemaTargetNamespace</span><span style="color: #339933;">=</span><span style="color: #000088;">$ns</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Register the method to expose</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'hello'</span><span style="color: #339933;">,</span>
<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xsd:string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'return'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xsd:string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$ns</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Define the method as a PHP function</span>
<span style="color: #000000; font-weight: bold;">function</span> hello<span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'Hello, '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Use the request to (try to) invoke the service</span>
<span style="color: #000088;">$HTTP_RAW_POST_DATA</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HTTP_RAW_POST_DATA</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$HTTP_RAW_POST_DATA</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">service</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HTTP_RAW_POST_DATA</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>As you see here there is one service called test.php and one webmethod called hello. This method has one parameter as input (name):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'hello'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xsd:string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'return'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xsd:string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ns</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Here is the flex code to connect and use the webmethod:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>mx:application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span><span style="color: #66cc66;">&gt;</span>
	applicationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">soap</span>.<span style="color: #006600;">Operation</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">InvokeEvent</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">soap</span>.<span style="color: #006600;">LoadEvent</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">FaultEvent</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">ResultEvent</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">soap</span>.<span style="color: #006600;">WebService</span>;
			<span style="color: #0066CC;">import</span> ro.<span style="color: #006600;">qbic</span>.<span style="color: #006600;">testmessage</span>;		
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _service : WebService;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _currentMessage: testmessage;
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				_currentMessage = <span style="color: #000000; font-weight: bold;">new</span> testmessage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;a&quot;</span><span style="color: #66cc66;">&#41;</span>;
				_service = <span style="color: #000000; font-weight: bold;">new</span> WebService<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				_service.<span style="color: #006600;">wsdl</span> = <span style="color: #ff0000;">&quot;http://localhost/WSDLPHP/test.php?wsdl&quot;</span>;
				_service.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>ResultEvent.<span style="color: #006600;">RESULT</span>, handleResult, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
				_service.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FaultEvent.<span style="color: #006600;">FAULT</span>, handleFault, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
				_service.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>LoadEvent.<span style="color: #0066CC;">LOAD</span>, handleLoad, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
				_service.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>InvokeEvent.<span style="color: #006600;">INVOKE</span>, handleInvoke, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
				_service.<span style="color: #006600;">loadWSDL</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> handleResult<span style="color: #66cc66;">&#40;</span>event:ResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #808080; font-style: italic;">// Get data from RESULT node</span>
				<span style="color: #000000; font-weight: bold;">var</span> tmpResp:<span style="color: #0066CC;">XML</span> = event.<span style="color: #006600;">result</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleFault<span style="color: #66cc66;">&#40;</span>event:FaultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> errorMessage:<span style="color: #0066CC;">String</span> =  event.<span style="color: #006600;">fault</span>.<span style="color: #006600;">faultString</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> + event.<span style="color: #006600;">fault</span>.<span style="color: #006600;">faultDetail</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleLoad<span style="color: #66cc66;">&#40;</span>event:LoadEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				_service.<span style="color: #006600;">getOperation</span><span style="color: #66cc66;">&#40;</span>_currentMessage.<span style="color: #006600;">webMethod</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">arguments</span> = _currentMessage;
				<span style="color: #66cc66;">&#40;</span>_service.<span style="color: #006600;">getOperation</span><span style="color: #66cc66;">&#40;</span>_currentMessage.<span style="color: #006600;">webMethod</span><span style="color: #66cc66;">&#41;</span> as Operation<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">resultFormat</span> = <span style="color: #ff0000;">&quot;e4x&quot;</span>;
				_service.<span style="color: #006600;">getOperation</span><span style="color: #66cc66;">&#40;</span>_currentMessage.<span style="color: #006600;">webMethod</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleInvoke<span style="color: #66cc66;">&#40;</span>event:InvokeEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:script<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:application<span style="color: #66cc66;">&gt;</span></pre></div></div>

 <div class='series_links'><a href='http://www.flexer.info/2007/10/23/web-service-small-how-to/' title='Web Service small how-to'>Previous in series</a> </div>]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/02/17/flex-and-php-web-service/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
