<?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>Felipe Borella</title>
	<atom:link href="http://www.fborella.com.br/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fborella.com.br/blog</link>
	<description>Flex, Java, Iphone.</description>
	<lastBuildDate>Wed, 25 Apr 2012 01:31:57 +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>Change Context Root Projects Flex/Java</title>
		<link>http://www.fborella.com.br/blog/2012/04/24/change-context-root-projects-flexjava/</link>
		<comments>http://www.fborella.com.br/blog/2012/04/24/change-context-root-projects-flexjava/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 01:31:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Profissional]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=317</guid>
		<description><![CDATA[In the java project, open .settings folder. there locate the file named &#8220;org.eclipse.wst.common.component&#8221; . Change tag . Also you may want to change context root in project properties Felipe. Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>In the java project, open .settings folder. there locate the file named &#8220;org.eclipse.wst.common.component&#8221; . Change tag <wb-module deploy-name="NEW_NAME"> .</p>
<p>Also you may want to change context root in project properties</p>
<p>Felipe.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2012%2F04%2F24%2Fchange-context-root-projects-flexjava%2F&amp;t=Change%20Context%20Root%20Projects%20Flex%2FJava" id="facebook_share_link_317">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_317') || document.getElementById('facebook_share_icon_317') || document.getElementById('facebook_share_both_317') || document.getElementById('facebook_share_button_317');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_317') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2012/04/24/change-context-root-projects-flexjava/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring Security Flex e Java</title>
		<link>http://www.fborella.com.br/blog/2011/08/09/spring-security-flex-e-java/</link>
		<comments>http://www.fborella.com.br/blog/2011/08/09/spring-security-flex-e-java/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 13:03:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=312</guid>
		<description><![CDATA[Ae pessoas. Blz? Só estou passando aqui para indicar um material que vale muito a pena para quem integra Java e Flex usando Spring é do FlexMania do Fabiel Prestes. Segue o link http://experts.adobeconnect.com/p82chnk4h58/ Só uma pequena dica quanto as annotations isso aqui tambem funciona @Secured &#40;&#123;&#34;ROLE_USER&#34;, &#34;ROLE_ADMIN&#34;&#125;&#41; public void save&#40;Contact contact&#41;; Pode passar um [...]]]></description>
			<content:encoded><![CDATA[<p>Ae pessoas. Blz?</p>
<p>Só estou passando aqui para indicar um material que vale muito a pena para quem integra Java e Flex usando Spring é do FlexMania do Fabiel Prestes.</p>
<p>Segue o link</p>
<p><a href="http://experts.adobeconnect.com/p82chnk4h58/" target="_blank">http://experts.adobeconnect.com/p82chnk4h58/</a></p>
<p>Só uma pequena dica quanto as annotations isso aqui tambem funciona</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@Secured <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;ROLE_USER&quot;</span>, <span style="color: #0000ff;">&quot;ROLE_ADMIN&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> save<span style="color: #009900;">&#40;</span>Contact contact<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Pode passar um array de String (by documentação do Spring Security )</p>
<p>Felipe</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F08%2F09%2Fspring-security-flex-e-java%2F&amp;t=Spring%20Security%20Flex%20e%20Java" id="facebook_share_link_312">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_312') || document.getElementById('facebook_share_icon_312') || document.getElementById('facebook_share_both_312') || document.getElementById('facebook_share_button_312');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_312') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/08/09/spring-security-flex-e-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder DataGrid DragEvent</title>
		<link>http://www.fborella.com.br/blog/2011/05/11/flash-builder-datagrid-dragevent/</link>
		<comments>http://www.fborella.com.br/blog/2011/05/11/flash-builder-datagrid-dragevent/#comments</comments>
		<pubDate>Wed, 11 May 2011 20:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=295</guid>
		<description><![CDATA[Olá pessoal beleza? Pois é em ritmo de AudiCup. Eis que então o pessoal da Audi entrou em contato comigo essa semana para fazer algo em Web 2.0 para cadastrar os times que irão participar da AudiCup. Segue os links abaixo: http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011.html http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011/schedule_and_tickets.html Inter , estaremos contigo .. Tu és minha paixão ! Não importa [...]]]></description>
			<content:encoded><![CDATA[<p>Olá pessoal beleza?</p>
<p>Pois é em ritmo de AudiCup.<br />
Eis que então o pessoal da Audi entrou em contato comigo essa semana para fazer algo em Web 2.0 para cadastrar os times que irão participar da AudiCup.</p>
<p>Segue os links abaixo:<br />
<a href="http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011.html" target="_blank">http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011.html</a><br />
<a href="http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011/schedule_and_tickets.html" target="_blank">http://www.audi.com/com/brand/en/experience/sponsoring/sportsponsoring/the_audi_cup_2011/schedule_and_tickets.html</a></p>
<p><strong><em>Inter , estaremos contigo ..<br />
Tu és minha paixão !<br />
Não importa o que digam<br />
Sempre levarei comigo<br />
Minha camisa vermelha ..<br />
e a cachaça na mão<br />
O Gigante me espera ..<br />
Para começar a festa !</em></strong></p>
<p>O exemplo é mais ou menos o que esta abaixo:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.fborella.com.br/audi/Audi.swf" /><param name="src" value="http://www.fborella.com.br/audi/Audi.swf" /><embed type="application/x-shockwave-flash" width="100%" height="500" src="http://www.fborella.com.br/audi/Audi.swf" data="http://www.fborella.com.br/audi/Audi.swf"></embed></object></p>
<p>Veja o Fonte é simples:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>Application xmlns<span style="color: #339933;">:</span>fx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
			   xmlns<span style="color: #339933;">:</span>s<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
			   xmlns<span style="color: #339933;">:</span>mx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;library://ns.adobe.com/flex/mx&quot;</span> minWidth<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;955&quot;</span> minHeight<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;600&quot;</span>
			   creationComplete<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;application1_creationCompleteHandler(event)&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>fx<span style="color: #339933;">:</span>Declarations<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>fx<span style="color: #339933;">:</span>Declarations<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>CDATA<span style="color: #009900;">&#91;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.collections.ArrayCollection</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.events.CloseEvent</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.controls.Alert</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.events.DragEvent</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.events.FlexEvent</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.managers.DragManager</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">private</span> var time<span style="color: #339933;">:</span><span style="color: #003399;">Time</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">private</span> var times<span style="color: #339933;">:</span>ArrayCollection<span style="color: #339933;">;</span>			
&nbsp;
			<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">private</span> var timesConvocados<span style="color: #339933;">:</span>ArrayCollection<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> function onDrop<span style="color: #009900;">&#40;</span>event<span style="color: #339933;">:</span>DragEvent<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>event.<span style="color: #006633;">dragSource</span>.<span style="color: #006633;">formats</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;items,itemsByIndex,caretIndex&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					var dragList<span style="color: #339933;">:</span><span style="color: #003399;">Array</span> <span style="color: #339933;">=</span> event.<span style="color: #006633;">dragSource</span>.<span style="color: #006633;">dataForFormat</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'items'</span><span style="color: #009900;">&#41;</span> as <span style="color: #003399;">Array</span><span style="color: #339933;">;</span>
					var draggedTimes<span style="color: #339933;">:</span><span style="color: #003399;">Time</span> <span style="color: #339933;">=</span> dragList<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> as <span style="color: #003399;">Time</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>draggedTimes.<span style="color: #006633;">fifa</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'N'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Não foi possível adicionar este time!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">+</span>draggedTimes.<span style="color: #006633;">nome</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot; não tem mundial de Clubes FIFA!&quot;</span>, <span style="color: #0000ff;">&quot;AudiCup&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						event.<span style="color: #006633;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						event.<span style="color: #006633;">target</span>.<span style="color: #006633;">hideDropFeedback</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						DragManager.<span style="color: #006633;">showFeedback</span><span style="color: #009900;">&#40;</span>DragManager.<span style="color: #006633;">NONE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>draggedTimes.<span style="color: #006633;">fifa</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'T'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Time Adicionado!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">+</span>draggedTimes.<span style="color: #006633;">nome</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot; foi campeão do mundialito de Gentil em 2010!&quot;</span>, <span style="color: #0000ff;">&quot;AudiCup&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
						Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Time Adicionado!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">+</span>draggedTimes.<span style="color: #006633;">nome</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot; foi campeão Mundial FIFA!&quot;</span>, <span style="color: #0000ff;">&quot;AudiCup&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>	
&nbsp;
			<span style="color: #000000; font-weight: bold;">protected</span> function application1_creationCompleteHandler<span style="color: #009900;">&#40;</span>event<span style="color: #339933;">:</span>FlexEvent<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				times<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FC Barcelona&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;S&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SC Internacional de Porto Alegre&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;S&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FC Bayern&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;S&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;AC Milan&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;S&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Grêmio de Porto Alegre&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;N&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SC Juventude de Caxias do Sul&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;N&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>				
&nbsp;
				time<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">id</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">nome</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FC Bãrdei de Marau&quot;</span><span style="color: #339933;">;</span>
				time.<span style="color: #006633;">fifa</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
				times.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>				
			<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span><span style="color: #003399;">Label</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> fontSize<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;14&quot;</span> fontWeight<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bold&quot;</span> text<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Audi Cup 2011 Meet the best&quot;</span><span style="color: #339933;">/&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGrid x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;32&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;250&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;220&quot;</span> dataProvider<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{times}&quot;</span>				
				dragEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> dragMoveEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> dropEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGridColumn dataField<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nome&quot;</span> headerText<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Times disponíveis para a AudiCup&quot;</span><span style="color: #339933;">/&gt;</span>
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>DataGrid<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGrid x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;268&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;32&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;250&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;220&quot;</span> dataProvider<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{timesConvocados}&quot;</span>
				 dragEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> dragMoveEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> dropEnabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> dragDrop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;onDrop(event);&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGridColumn dataField<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nome&quot;</span> headerText<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Convoque você mesmo - Arraste Aqui&quot;</span><span style="color: #339933;">/&gt;</span>
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>DataGrid<span style="color: #339933;">&gt;</span>	
<span style="color: #339933;">&lt;/</span>s<span style="color: #339933;">:</span>Application<span style="color: #339933;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> <span style="color: #003399;">Time</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">public</span> var id<span style="color: #339933;">:</span><span style="color: #003399;">Number</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">public</span> var nome<span style="color: #339933;">:</span><span style="color: #003399;">String</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">public</span> var fifa<span style="color: #339933;">:</span><span style="color: #003399;">String</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> function <span style="color: #003399;">Time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Felipe Borella.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F05%2F11%2Fflash-builder-datagrid-dragevent%2F&amp;t=Flash%20Builder%20DataGrid%20DragEvent" id="facebook_share_link_295">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_295') || document.getElementById('facebook_share_icon_295') || document.getElementById('facebook_share_both_295') || document.getElementById('facebook_share_button_295');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_295') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/05/11/flash-builder-datagrid-dragevent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Builder 4.5 Eclipse</title>
		<link>http://www.fborella.com.br/blog/2011/05/06/flash-builder-4-5-eclipse/</link>
		<comments>http://www.fborella.com.br/blog/2011/05/06/flash-builder-4-5-eclipse/#comments</comments>
		<pubDate>Fri, 06 May 2011 17:27:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[Tablet]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=292</guid>
		<description><![CDATA[Opa. Fiz alguns testes com o Flash Builder 4.5 e fiquei impressionado com o desenvolvimento para mobile. Show de bola mesmo. Bom para instalar o Eclipse juntamente com o Flash Builder é fácil. Depois do Flash Builder instalado va ate a página http://kb2.adobe.com/cps/890/cpsid_89021.html que é bem fácil a instalação. Tradução é +- isso: Flash Builder [...]]]></description>
			<content:encoded><![CDATA[<p>Opa.</p>
<p>Fiz alguns testes com o Flash Builder 4.5 e fiquei impressionado com o desenvolvimento para mobile. Show de bola mesmo.<br />
Bom para instalar o Eclipse juntamente com o Flash Builder é fácil.</p>
<p>Depois do Flash Builder instalado va ate a página <a href="http://kb2.adobe.com/cps/890/cpsid_89021.html">http://kb2.adobe.com/cps/890/cpsid_89021.html</a> que é bem fácil a instalação.</p>
<p>Tradução é +- isso:</p>
<p>Flash Builder 4,5 suporta a instalação de um plugin para o Eclipse uma instância existente. Para fazer isso:</p>
<p>    Navegue até o local de instalação instalado o Flash Builder e abra a pasta Utilitários.<br />
    Execute o executável do Adobe Flash Builder 4,5 Plug-in Utility.exe.<br />
    Selecione o idioma e clique em OK.<br />
    Selecione o local de instalação do Flash Builder, se solicitado.<br />
    Selecione a pasta do Eclipse para o qual deseja Flash Builder 4.5 para ser conectado e clique em Avançar. (Nota: A cópia do Eclipse deve ser versão 3.6.1 ou posterior, de 32 bits e deve conter uma pasta chamada &#8220;dropins&#8221;)<br />
    Reveja a pré-instalação de resumo e clique em Install<br />
    Após a instalação, é recomendável que você edite o arquivo eclipse.ini para a instância do Eclipse, para que ele inclui as seguintes definições: </p>
<p> -Vmargs-Xms256m-Xmx512m-XX: MaxPermSize = 256m-XX: PermSize = 64m </p>
<p>E isso ai</p>
<p>Felipe.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F05%2F06%2Fflash-builder-4-5-eclipse%2F&amp;t=Flash%20Builder%204.5%20Eclipse" id="facebook_share_link_292">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_292') || document.getElementById('facebook_share_icon_292') || document.getElementById('facebook_share_both_292') || document.getElementById('facebook_share_button_292');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_292') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/05/06/flash-builder-4-5-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring @Transactional Transações Java</title>
		<link>http://www.fborella.com.br/blog/2011/05/05/spring-transactional-transacoes-java/</link>
		<comments>http://www.fborella.com.br/blog/2011/05/05/spring-transactional-transacoes-java/#comments</comments>
		<pubDate>Thu, 05 May 2011 14:43:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=290</guid>
		<description><![CDATA[E ai pessoal blza? Uma coisa que as vezes eu vejo por ai são aplicações sem o uso do controle de transações. Descobri a poucos dias que isso pode ser tornar uma dor de cabeça para o desenvolvedor. Então se você usa o Spring ( que é o meus caso ) basta incluir no seu [...]]]></description>
			<content:encoded><![CDATA[<p>E ai pessoal blza?<br />
Uma coisa que as vezes eu vejo por ai são aplicações sem o uso do controle de transações. Descobri a poucos dias que isso pode ser tornar uma dor de cabeça para o desenvolvedor. Então se você usa o Spring ( que é o meus caso ) basta incluir no seu ApplicationContext essa tag abaixo:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>tx<span style="color: #339933;">:</span>annotation<span style="color: #339933;">-</span>driven transaction<span style="color: #339933;">-</span>manager<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;transactionManager&quot;</span><span style="color: #339933;">/&gt;</span></pre></div></div>

<p>Depois nos seus services basta fazer isso:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@Transactional<span style="color: #009900;">&#40;</span>propagation<span style="color: #339933;">=</span>Propagation.<span style="color: #006633;">REQUIRED</span>,rollbackFor<span style="color: #339933;">=</span><span style="color: #003399;">Exception</span>.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Isso pode evitar alguns indesejáveis problemas no banco de dados, inconsistências e até mesmo a quedra do servidor ( apache tomcat, jboos etc ).</p>
<p>ps &#8211; Esse controle de aplicação aplica-se para outros, não apenas no Spring ( veja a documentação )</p>
<p>Att<br />
Felipe</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F05%2F05%2Fspring-transactional-transacoes-java%2F&amp;t=Spring%20%40Transactional%20Transa%C3%A7%C3%B5es%20Java" id="facebook_share_link_290">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_290') || document.getElementById('facebook_share_icon_290') || document.getElementById('facebook_share_both_290') || document.getElementById('facebook_share_button_290');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_290') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/05/05/spring-transactional-transacoes-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ArrayCollection XML FileReference Flex</title>
		<link>http://www.fborella.com.br/blog/2011/04/07/arraycollection-xml-filereference-flex/</link>
		<comments>http://www.fborella.com.br/blog/2011/04/07/arraycollection-xml-filereference-flex/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 18:50:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=284</guid>
		<description><![CDATA[Opa. Resolvi criar este post pois ja havia feito isso para trabalho de faculdade, então, compratilhando o conhecimento adquirido. Segue abaixo aplicação e os fonte com as explicações: Clique em Listar e depois salvar. &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34; backgroundColor=&#34;white&#34;&#62; &#160; &#60;mx:Script&#62; &#60;!&#91;CDATA&#91; import mx.rpc.xml.SimpleXMLEncoder; import mx.utils.ObjectUtil; import mx.controls.Alert; import mx.collections.ArrayCollection; &#160; private var [...]]]></description>
			<content:encoded><![CDATA[<p>Opa.</p>
<p>Resolvi criar este post pois ja havia feito isso para trabalho de faculdade, então, compratilhando o conhecimento adquirido.</p>
<p>Segue abaixo aplicação e os fonte com as explicações:<br />
Clique em Listar e depois salvar.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.fborella.com.br/examples/xml/ArrayCollcetionToXml.swf" /><param name="src" value="http://www.fborella.com.br/examples/xml/ArrayCollcetionToXml.swf" /><embed type="application/x-shockwave-flash" width="100%" height="500" src="http://www.fborella.com.br/examples/xml/ArrayCollcetionToXml.swf" data="http://www.fborella.com.br/examples/xml/ArrayCollcetionToXml.swf"></embed></object></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>Application xmlns<span style="color: #339933;">:</span>mx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;absolute&quot;</span>
	backgroundColor<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;white&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>CDATA<span style="color: #009900;">&#91;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.rpc.xml.SimpleXMLEncoder</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.utils.ObjectUtil</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.controls.Alert</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.collections.ArrayCollection</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> var fr<span style="color: #339933;">:</span>FileReference<span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">const</span> FILE_TYPES<span style="color: #339933;">:</span><span style="color: #003399;">Array</span><span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Arquivo XML&quot;</span>, <span style="color: #0000ff;">&quot;*.xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">const</span> DEFAULT_FILE_NAME<span style="color: #339933;">:</span><span style="color: #003399;">String</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;trabalho.xml&quot;</span><span style="color: #339933;">;</span>			
			<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">public</span> var arr<span style="color: #339933;">:</span>ArrayCollection<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #009900;">&#40;</span>
					<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span>, nome<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Felipe Borella&quot;</span>, cidade<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Marau&quot;</span><span style="color: #009900;">&#125;</span>,
					<span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span>, nome<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Mario Junior&quot;</span>, cidade<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Rio de Janeiro&quot;</span><span style="color: #009900;">&#125;</span>,
					<span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span>, nome<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Bãrdei Futebol Clube&quot;</span>, cidade<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Marau&quot;</span><span style="color: #009900;">&#125;</span>,
					<span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span>, nome<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Janderson Futebol Clube&quot;</span>, cidade<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Rio de Janeiro&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> function iniciar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				var xml<span style="color: #339933;">:</span>XML<span style="color: #339933;">=</span>objectToXML<span style="color: #009900;">&#40;</span>arr.<span style="color: #006633;">source</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				txt1.<span style="color: #006633;">text</span><span style="color: #339933;">=</span>ObjectUtil.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>arr.<span style="color: #006633;">source</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				txt2.<span style="color: #006633;">text</span><span style="color: #339933;">=</span>xml.<span style="color: #006633;">toXMLString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> function objectToXML<span style="color: #009900;">&#40;</span>obj<span style="color: #339933;">:</span><span style="color: #003399;">Object</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>XML
			<span style="color: #009900;">&#123;</span>	
				var qName<span style="color: #339933;">:</span>QName<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> QName<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;pessoa&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				var xmlDocument<span style="color: #339933;">:</span>XMLDocument<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> XMLDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				var simpleXMLEncoder<span style="color: #339933;">:</span>SimpleXMLEncoder<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> SimpleXMLEncoder<span style="color: #009900;">&#40;</span>xmlDocument<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				var xmlNode<span style="color: #339933;">:</span>XMLNode<span style="color: #339933;">=</span>simpleXMLEncoder.<span style="color: #006633;">encodeValue</span><span style="color: #009900;">&#40;</span>obj, qName, xmlDocument<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				var xml<span style="color: #339933;">:</span>XML<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> XML<span style="color: #009900;">&#40;</span>xmlDocument.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				trace<span style="color: #009900;">&#40;</span>xml.<span style="color: #006633;">toXMLString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">return</span> xml<span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> function onLoadFileClick<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//cria a instancia do FileReference</span>
				fr<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//adiciona o evento para a escuta quando o arquivo for selecionado </span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">SELECT</span>, onFileSelect<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//adiciona o evento para a escuta quando o arquivo for cancelado</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">CANCEL</span>, onCancel<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//abri somente arquivos XML</span>
				fr.<span style="color: #006633;">browse</span><span style="color: #009900;">&#40;</span>FILE_TYPES<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamado quando o usuario seleciona o arquivo</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onFileSelect<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//quando o arquivo for carregado dispara a escuta da funcao onLoadComplete</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">COMPLETE</span>, onLoadComplete<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">// adiciona a escuta quando acontece erro ao carregar arquivo</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span>IOErrorEvent.<span style="color: #006633;">IO_ERROR</span>, onLoadError<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//carrega o conteudo do arquivo</span>
				fr.<span style="color: #006633;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//Chamado quando o usuario cancela</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onCancel<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				trace<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;File Browse Canceled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				fr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chama completa o arquivo carregado</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onLoadComplete<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//recupera os dados do arquivo como um byte array</span>
				var data<span style="color: #339933;">:</span>ByteArray<span style="color: #339933;">=</span>fr.<span style="color: #006633;">data</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//le o arquivo como uma string e coloca em um text area</span>
				txt2.<span style="color: #006633;">text</span><span style="color: #339933;">=</span>data.<span style="color: #006633;">readUTFBytes</span><span style="color: #009900;">&#40;</span>data.<span style="color: #006633;">bytesAvailable</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//limpa a instancia do arquivo tipo filereference</span>
				fr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//quando ocorrer erros ao carregar</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onLoadError<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span>IOErrorEvent<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				trace<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Error loading file : &quot;</span> <span style="color: #339933;">+</span> e.<span style="color: #006633;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamadoquando o usuario digita no textarea</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onInputChange<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//habilita o botao se ha texto para salvar</span>
				saveButton.<span style="color: #006633;">enabled</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>txt2.<span style="color: #006633;">text</span>.<span style="color: #006633;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamado quando o usuario clica o botao de carregar</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onSaveClick<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//criando instancia de File Reference</span>
				fr<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//escuta para falha quando foi salvo</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">COMPLETE</span>, onFileSave<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//escuta  para quando cancelar</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">CANCEL</span>, onCancel<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//escuta para quando ha erros no salvar</span>
				fr.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span>IOErrorEvent.<span style="color: #006633;">IO_ERROR</span>, onSaveError<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//abre a caixa para saber onde salvar o XML usando o nome default</span>
				fr.<span style="color: #006633;">save</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #339933;">+</span>txt2.<span style="color: #006633;">text</span>, DEFAULT_FILE_NAME<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamado quando o arquivo for salvo</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onFileSave<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				trace<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;File Saved&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				fr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
				Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Salvo com sucesso'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamado se o usuario cancela a caixa de dialogo</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onCance2l<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Arquivo cancelado'</span>, <span style="color: #0000ff;">'Sistema'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				fr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//chamado se ocorrer erro enquanto salva o arquivo</span>
			<span style="color: #000000; font-weight: bold;">private</span> function onSaveError<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span>IOErrorEvent<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Erro '</span><span style="color: #339933;">+</span> e.<span style="color: #006633;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				fr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>					
		<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGrid x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> dataProvider<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{arr}&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;299&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGridColumn headerText<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Nome&quot;</span> dataField<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nome&quot;</span><span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>DataGridColumn headerText<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Cidade&quot;</span> dataField<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cidade&quot;</span><span style="color: #339933;">/&gt;</span>			
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>columns<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>DataGrid<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span><span style="color: #003399;">Button</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;saveButton&quot;</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;412&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;130&quot;</span> label<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Salvar&quot;</span> click<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;onSaveClick()&quot;</span><span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span><span style="color: #003399;">TextArea</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;txt1&quot;</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;175&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;228&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;231&quot;</span> editable<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span><span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span><span style="color: #003399;">TextArea</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;txt2&quot;</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;246&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;175&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;228&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;231&quot;</span> editable<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span><span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span><span style="color: #003399;">Button</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;346&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;130&quot;</span> label<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Listar&quot;</span> click<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;iniciar()&quot;</span><span style="color: #339933;">/&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>Application<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Valeu ai!</p>
<p>Felipe<br />
Marau-RS</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F04%2F07%2Farraycollection-xml-filereference-flex%2F&amp;t=ArrayCollection%20XML%20FileReference%20Flex" id="facebook_share_link_284">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_284') || document.getElementById('facebook_share_icon_284') || document.getElementById('facebook_share_both_284') || document.getElementById('facebook_share_button_284');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_284') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/04/07/arraycollection-xml-filereference-flex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exemplo ComboBox &#8211; Post Mario Junior</title>
		<link>http://www.fborella.com.br/blog/2011/04/05/exemplo-combobox-post-mario-junior/</link>
		<comments>http://www.fborella.com.br/blog/2011/04/05/exemplo-combobox-post-mario-junior/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 21:01:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Profissional]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=278</guid>
		<description><![CDATA[Opa pessoal. Segue o exemplo disponibilizado no blog do Mario Junior ainda antes da perda dos dados do blog. Segue o exemplo e as explicações juntamente com o fonte. Créditos para ele. Só clicar com o direito ali e pegar o fonte. Exemplo: Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>Opa pessoal.<br />
Segue o exemplo disponibilizado no blog do Mario Junior ainda antes da perda dos dados do blog.<br />
Segue o exemplo e as explicações juntamente com o fonte. Créditos para ele.<br />
Só clicar com o direito ali e pegar o fonte.<br />
Exemplo:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.fborella.com.br/examples/Combo/SelectedValueExample.swf" /><param name="src" value="http://www.fborella.com.br/examples/Combo/SelectedValueExample.swf" /><embed type="application/x-shockwave-flash" width="100%" height="400" src="http://www.fborella.com.br/examples/Combo/SelectedValueExample.swf" data="http://www.fborella.com.br/examples/Combo/SelectedValueExample.swf"></embed></object></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F04%2F05%2Fexemplo-combobox-post-mario-junior%2F&amp;t=Exemplo%20ComboBox%20-%20Post%20Mario%20Junior" id="facebook_share_link_278">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_278') || document.getElementById('facebook_share_icon_278') || document.getElementById('facebook_share_both_278') || document.getElementById('facebook_share_button_278');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_278') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/04/05/exemplo-combobox-post-mario-junior/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Singleton Action Script</title>
		<link>http://www.fborella.com.br/blog/2011/03/22/singleton-action-script/</link>
		<comments>http://www.fborella.com.br/blog/2011/03/22/singleton-action-script/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 20:18:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=275</guid>
		<description><![CDATA[Dae Pessoal. Hoje vamos falar sobre Singleton em Action Script. Singleton é um modelo de Design Pattern que simplifica o acesso ao objeto, apenas instanciando a mesma. Veja no exemplo a Classe que eu fiz e o seu uso. package br.com.fborella &#123; public class Singleton &#123; private static var instance:Singleton; public var auxiliar:String; &#160; public [...]]]></description>
			<content:encoded><![CDATA[<p>Dae Pessoal.</p>
<p>Hoje vamos falar sobre Singleton em Action Script.<br />
Singleton é um modelo de Design Pattern que simplifica o acesso ao objeto, apenas instanciando a mesma. Veja no exemplo a Classe que eu fiz e o seu uso.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">br.com.fborella</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Singleton
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> var instance<span style="color: #339933;">:</span>Singleton<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">public</span> var auxiliar<span style="color: #339933;">:</span><span style="color: #003399;">String</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> function Singleton<span style="color: #009900;">&#40;</span>enforcer<span style="color: #339933;">:</span>SingletonEnforcer<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>enforcer <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
				<span style="color: #000000; font-weight: bold;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Error</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;é possivel apenas uma instância&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> function getInstance<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>Singleton
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>instance <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
				instance<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> Singleton<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SingletonEnforcer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">return</span> instance<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Esse class abaixo e para bloquear qualquer acesso ao construtor.  </span>
<span style="color: #000000; font-weight: bold;">class</span> SingletonEnforcer <span style="color: #009900;">&#123;</span>  
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Usando a mesma:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>Application xmlns<span style="color: #339933;">:</span>mx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;absolute&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>CDATA<span style="color: #009900;">&#91;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.controls.Alert</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">br.com.fborella.Singleton</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">public</span> var instancia<span style="color: #339933;">:</span>Singleton <span style="color: #339933;">=</span> Singleton.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">public</span> function clique<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#123;</span>  
            	instancia.<span style="color: #006633;">auxiliar</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Teste Singleton'</span><span style="color: #339933;">;</span>
            	Alert.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span>instancia.<span style="color: #006633;">auxiliar</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
            <span style="color: #009900;">&#125;</span> 			  			
		<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span><span style="color: #003399;">Button</span> label<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Clique aqui&quot;</span> click<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;clique()&quot;</span><span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>s<span style="color: #339933;">:</span>Application<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Valeu ai pessoal..</p>
<p>Felipe</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F03%2F22%2Fsingleton-action-script%2F&amp;t=Singleton%20Action%20Script" id="facebook_share_link_275">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_275') || document.getElementById('facebook_share_icon_275') || document.getElementById('facebook_share_both_275') || document.getElementById('facebook_share_button_275');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_275') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/03/22/singleton-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postgres no Ubuntu em poucos comandos.</title>
		<link>http://www.fborella.com.br/blog/2011/03/22/postgres-no-ubuntu-eu-poucos-comandos/</link>
		<comments>http://www.fborella.com.br/blog/2011/03/22/postgres-no-ubuntu-eu-poucos-comandos/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 14:48:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=272</guid>
		<description><![CDATA[Dae galera! Sempre que passo por algo novo e sofro um pouco eu repasso. Entao vamos la Primeiro comando. $ sudo apt-get install postgresql-8.3 postgresql-client-8.3 Se você tiver o desktop pode instalar o PgAdmin $ sudo apt-get install pgadmin3 pgadmin3-data Depois temos de alterar o usuario postgres. Dê os tres comandos na sequencia Não esqueça [...]]]></description>
			<content:encoded><![CDATA[<p>Dae galera!</p>
<p>Sempre que passo por algo novo e sofro um pouco eu repasso. Entao vamos la</p>
<p>Primeiro comando.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">$ sudo apt<span style="color: #339933;">-</span>get install postgresql<span style="color: #339933;">-</span><span style="color: #cc66cc;">8.3</span> postgresql<span style="color: #339933;">-</span>client<span style="color: #339933;">-</span><span style="color: #cc66cc;">8.3</span></pre></div></div>

<p>Se você tiver o desktop pode instalar o PgAdmin</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">$ sudo apt<span style="color: #339933;">-</span>get install pgadmin3 pgadmin3<span style="color: #339933;">-</span>data</pre></div></div>

<p>Depois temos de alterar o usuario postgres. Dê os tres comandos na sequencia<br />
Não esqueça o ponto e virgula no final ( me quebrei um monte para ver isso shaushaus).</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">sudo su postgres <span style="color: #339933;">-</span>c psql postgres
ALTER USER postgres WITH PASSWORD ‘password’<span style="color: #339933;">;</span>
\q</pre></div></div>

<p>Edite o arquivo postgresql.conf. (se nao conseguir editar é falta de permissão).<br />
Na linha listen_addresses, troque o localhost por *, ficando a linha assim:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">listen_addresses <span style="color: #339933;">=</span> <span style="color: #0000ff;">'*'</span>
<span style="color: #666666; font-style: italic;">//este tambem e descomente tirando o #</span>
password_encryption <span style="color: #339933;">=</span> on</pre></div></div>

<p>Finalmente a próxima configuração é no arquivo pg_hba.conf<br />
Adicione a sua linha de ips</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">host    all    all    192.168.1.0    255.255.255.0    md5</pre></div></div>

<p>Depois disso só restartar o serviço</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">sudo <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>init.<span style="color: #006633;">d</span><span style="color: #339933;">/</span>postgresql<span style="color: #339933;">-</span><span style="color: #cc66cc;">8.3</span> restart</pre></div></div>

<p>Aqui funcionou qualquer coisa me avisem.</p>
<p>Felipe</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F03%2F22%2Fpostgres-no-ubuntu-eu-poucos-comandos%2F&amp;t=Postgres%20no%20Ubuntu%20em%20poucos%20comandos." id="facebook_share_link_272">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_272') || document.getElementById('facebook_share_icon_272') || document.getElementById('facebook_share_both_272') || document.getElementById('facebook_share_button_272');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_272') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/03/22/postgres-no-ubuntu-eu-poucos-comandos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>States Flash Builder</title>
		<link>http://www.fborella.com.br/blog/2011/03/11/states-flash-builder/</link>
		<comments>http://www.fborella.com.br/blog/2011/03/11/states-flash-builder/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 15:27:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.fborella.com.br/blog/?p=266</guid>
		<description><![CDATA[Dae pessoal. Estou iniciando ainda no FX4 ou Flash Builder como queiram, então tenho minhas dificuldades ainda, mas é muito bom o resultado que estou vendo. Esse dias me deparei com alguns problemas com states que no Flex 3 eu fzia algo do tipo: Fx3 &#60;mx:State name=&#34;logonState&#34;&#62; &#60;mx:SetProperty target=&#34;{textInputNome}&#34; name=&#34;visible&#34; value=&#34;true&#34; /&#62; Bom as mudanças [...]]]></description>
			<content:encoded><![CDATA[<p>Dae pessoal.</p>
<p>Estou iniciando ainda no FX4 ou Flash Builder como queiram, então tenho minhas dificuldades ainda, mas é muito bom o resultado que estou vendo. Esse dias me deparei com alguns problemas com states que no Flex 3 eu fzia algo do tipo:</p>
<p>Fx3</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>State name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;logonState&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>SetProperty target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{textInputNome}&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;visible&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>Bom as mudanças para o FX4 foram muitas onde no próprio componente adicionamos essas propriedades.<br />
Logo no inicio fiquei de cara achava mais dificil sei la, mas achei que é algo que melhorou muito, ou seja,<br />
sim ficou melhor ja me acostumei e achei mais &#8220;clean&#8221; o negocio.</p>
<p>veja o exemplo que fiz abaixo:<br />
FX4</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.fborella.com.br/examples/States/States.swf" /><param name="src" value="http://www.fborella.com.br/examples/States/States.swf" /><embed type="application/x-shockwave-flash" width="100%" height="400" src="http://www.fborella.com.br/examples/States/States.swf" data="http://www.fborella.com.br/examples/States/States.swf"></embed></object></p>
<p>e o Codigo fica esse</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>Application xmlns<span style="color: #339933;">:</span>fx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
			   xmlns<span style="color: #339933;">:</span>s<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
			   xmlns<span style="color: #339933;">:</span>mx<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;library://ns.adobe.com/flex/mx&quot;</span> 
			   minWidth<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;955&quot;</span> minHeight<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;600&quot;</span>
			   currentState<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;state1&quot;</span> viewSourceURL<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;srcview/index.html&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>fx<span style="color: #339933;">:</span>Declarations<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>fx<span style="color: #339933;">:</span>Declarations<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>CDATA<span style="color: #009900;">&#91;</span>
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">mx.collections.ArrayCollection</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">spark.events.IndexChangeEvent</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#91;</span>Bindable<span style="color: #009900;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">private</span> var arrayCollection<span style="color: #339933;">:</span>ArrayCollection<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>
				<span style="color: #009900;">&#123;</span>prop<span style="color: #339933;">:</span><span style="color: #0000ff;">'state1'</span><span style="color: #009900;">&#125;</span>,<span style="color: #009900;">&#123;</span>prop<span style="color: #339933;">:</span><span style="color: #0000ff;">'state2'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
			<span style="color: #000000; font-weight: bold;">protected</span> function comboBox_changeHandler<span style="color: #009900;">&#40;</span>event<span style="color: #339933;">:</span>IndexChangeEvent<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">currentState</span><span style="color: #339933;">=</span>comboBox.<span style="color: #006633;">selectedItem</span>.<span style="color: #006633;">prop</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>fx<span style="color: #339933;">:</span>Script<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>states<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>State name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;state1&quot;</span><span style="color: #339933;">/&gt;</span>
		<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>State name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;state2&quot;</span><span style="color: #339933;">/&gt;</span>		
	<span style="color: #339933;">&lt;/</span>s<span style="color: #339933;">:</span>states<span style="color: #339933;">&gt;</span>	
	<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>Form<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>TextInput id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;textInput1&quot;</span> text.<span style="color: #006633;">state1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FELIPE&quot;</span> text.<span style="color: #006633;">state2</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;BORELLA&quot;</span><span style="color: #339933;">/&gt;</span>		
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>		
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>TextInput id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;textInput2&quot;</span> text.<span style="color: #006633;">state1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;BORELLA&quot;</span> text.<span style="color: #006633;">state2</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FELIPE&quot;</span><span style="color: #339933;">/&gt;</span>		
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>s<span style="color: #339933;">:</span>ComboBox id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;comboBox&quot;</span> labelField<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;prop&quot;</span> dataProvider<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{arrayCollection}&quot;</span>
						change<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;comboBox_changeHandler(event)&quot;</span> selectedIndex<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #339933;">/&gt;</span>		
		<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>FormItem<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mx<span style="color: #339933;">:</span>Form<span style="color: #339933;">&gt;</span>	
<span style="color: #339933;">&lt;/</span>s<span style="color: #339933;">:</span>Application<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Felipe!</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fborella.com.br%2Fblog%2F2011%2F03%2F11%2Fstates-flash-builder%2F&amp;t=States%20Flash%20Builder" id="facebook_share_link_266">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_266') || document.getElementById('facebook_share_icon_266') || document.getElementById('facebook_share_both_266') || document.getElementById('facebook_share_button_266');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_266') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.fborella.com.br/blog/2011/03/11/states-flash-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

