<?xml version="1.0" encoding="ISO-8859-1"?>
<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>DClick Team Weblog [pt]</title>
	<atom:link href="http://blog.dclick.com.br/feed/pt/" rel="self" type="application/rss+xml" />
	<link>http://blog.dclick.com.br</link>
	<description>Blog do time da DClick</description>
	<lastBuildDate>Thu, 04 Mar 2010 13:01:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>pt</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Evitando problemas com Views e DTOs</title>
		<link>http://blog.dclick.com.br/2010/03/04/evitando-problemas-com-views-e-dtos/pt/</link>
		<comments>http://blog.dclick.com.br/2010/03/04/evitando-problemas-com-views-e-dtos/pt/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 12:42:56 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[Screencast]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2482</guid>
		<description><![CDATA[Twitter! No seu aplicativo você tem um DTO cujo os dados são renderizados por diferentes Views (telas). Então, toda hora que o seu DTO muda, você percebe sua aplicação travada por uns segundos. Depois de um tempo você percebe que o problema é que mesmo as telas que estão invisíveis estão executando código de apresentação [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Evitando%20problemas%20com%20Views%20e%20DTOs%22%20http%3A%2F%2Ftinyurl.com%2Fyjav4df" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>No seu aplicativo você tem um DTO cujo os dados são renderizados por diferentes Views (telas). Então, toda hora que o seu DTO muda, você percebe sua aplicação travada por uns segundos. Depois de um tempo você percebe que o problema é que mesmo as telas que estão invisíveis estão executando código de apresentação de dados com base no novo DTO. Bem, este é um problema comum quando trabalhamos com DTOs complexos e abusamos do Data Binding. </p>
<p>A notícia ruim é que se você não teve este problema ainda, um dia você terá. A notícia boa é que uma das maneiras de evitar este problema é utilizar o DTOViewHelper, componente disponibilizado neste screencast. </p>
<p>Alguns Frameworks atuais do Flex oferecem maneiras de resolver este problema, mas o DTOViewHelper é independente do Framework que você usa. Além disso, como pode ser visto no Screencast, você pode definir métodos auxiliares dentro do DTOViewHelper com o objetivo compartilhar lógica de apresentação de dados de DTOs entre diferentes Views (veja o exemplo da Data que mostra a string &#8220;Hoje&#8221; no Screencast).</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="370" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="src" value="http://blip.tv/play/gs05gcq0KgI" /><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><embed type="application/x-shockwave-flash" width="540" height="370" src="http://blip.tv/play/gs05gcq0KgI" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://www.becklog.org/wp-content/uploads/2010/PopulandoTodasViews.zip">Clique aqui</a> para fazer o download do código fonte do exemplo &#8220;errado&#8221; (I could be WRONG).</p>
<p><a href="http://www.becklog.org/wp-content/uploads/2010/PopulandoViewsVisiveis.zip">Clique aqui</a> para fazer o download do código fonte do exemplo &#8220;certo&#8221; (I could be RIGHT).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/03/04/evitando-problemas-com-views-e-dtos/pt/feed/pt/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Designer para Aplicações Hollywoodianas</title>
		<link>http://blog.dclick.com.br/2010/03/01/designer-para-aplicacoes-hollywoodianas/pt/</link>
		<comments>http://blog.dclick.com.br/2010/03/01/designer-para-aplicacoes-hollywoodianas/pt/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 12:57:50 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Notícias]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2470</guid>
		<description><![CDATA[Twitter! A DClick SP esta em busca um Designer para seus aplicativos RIA. Os interessados devem enviar um currículo para oportunidade@dclick.com.br.
Mas deixa eu falar uma coisa: como é difícil encontrar Desginers que desejem trabalhar com aplicativos, não é verdade? 
Suponho que muitos Designers não querem trabalhar em empresas de TI por alguns motivos:
1. Os Designers [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Designer%20para%20Aplica%E7%F5es%20Hollywoodianas%22%20http%3A%2F%2Ftinyurl.com%2Fylsa7ax" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>A DClick SP esta em busca um Designer para seus aplicativos RIA. Os interessados devem enviar um currículo para oportunidade@dclick.com.br.</p>
<p>Mas deixa eu falar uma coisa: como é difícil encontrar Desginers que desejem trabalhar com aplicativos, não é verdade? </p>
<p>Suponho que muitos Designers não querem trabalhar em empresas de TI por alguns motivos:</p>
<p>1. Os Designers acreditam que numa grande agência de publicidade eles terão mais reconhecimento (só não devem se esquecer que numa agência talvez ele seja só mais um)</p>
<p>2. Os Designers acreditam que numa grande agência eles terão oportunidade de concorrer a prêmios (tá bom, deve ser legal, mas isso não vai mudar o mundo)</p>
<p>3. Os Designers acreditam que fora de uma agência seu trabalho não será valorizado, mas sim ridicularizado como geralmente acontece em empresas de TI que vêem este trabalho como algo supérfluo &#8211; para não dizer &#8220;frescura&#8221; (termo terminantemente proibido na DClick para avaliar um Design!)</p>
<p>Pois bem, exposto <del datetime="2010-03-01T13:34:42+00:00">o motivo</del> a opinião pela qual muitos Designers preferem agencias, agora deixa eu falar porque aqui na DClick será diferente:</p>
<p>1. Aqui na DClick você terá reconhecimento pois você será o responsável por aplicativos como <a href="http://blip.tv/file/3086747">este</a> e <a href="http://dclick.blip.tv/file/1736679">estes do teaser</a>. Você também estará trabalhando na maior empresa de RIA do Brasil e prestando serviços para clientes como Petrobras, Odebrecht, COC e possivelmente clientes do exterior.</p>
<p>2. Mas tudo isso do item 1, apesar de ser verdade, soa muito corporativo e num blog como este ninguém agüenta este dialeto dos negócios. Pois bem, trocando em miúdos, o principal motivo para você trabalhar aqui é mudar a maneira como as empresas de TI enxergam o Design de Aplicativos construindo cases que vão deixar o mundo de boca aberta. Aqui nós queremos desenvolver aplicações Hollywoodianas no sentido de &#8220;criação de grandes experiências&#8221; graças ao perfeito equilíbrio entre as diferentes expertises: design gráfico, design de interação, programação e negócios. E  nós acreditamos que isso pode mudar o mundo não apenas pelos aplicativos que acreditamos que somos capazes de desenvolver, mas também com as noções tais como a de que o Design é, como tudo, algo vivo no processo e não apenas o ato de colorir wireframes.</p>
<p>3. Você será peça fundamental na criação destas aplicações Hollywoodianas. Aqui a sua opinião será ouvida e ponderada. Não prevalecerá os paradigmas das empresas de TI que muitas vezes vetam uma boa idéia porque acham que vai ser difícil fazer. Temos técnicos altamente capacitados para tornar realidade o seu Design. O seu Design é um desafio para nós e não um problema irrelevante. </p>
<p>Pois bem, já vendi o peixe da empresa, agora cabe a você vender o seu. Ajuda muito se você se achar capaz de fazer Design como os dos screenshoots abaixo:</p>
<p><a href='http://blog.dclick.com.br/wp-content/uploads/screen1.png' title='Demo'><img src='http://blog.dclick.com.br/wp-content/uploads/screen1_small.png' alt='Demo' /></a></p>
<p><a href='http://blog.dclick.com.br/wp-content/uploads/screen2.png' title='Demo'><img src='http://blog.dclick.com.br/wp-content/uploads/screen2_small.png' alt='Demo' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/03/01/designer-para-aplicacoes-hollywoodianas/pt/feed/pt/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotacionando Janelas no Flex: PodFlip Component</title>
		<link>http://blog.dclick.com.br/2010/02/22/rotacionando-janelas-no-flex-podflip-component/pt/</link>
		<comments>http://blog.dclick.com.br/2010/02/22/rotacionando-janelas-no-flex-podflip-component/pt/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:56:04 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex Components]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2405</guid>
		<description><![CDATA[Twitter! A ultima turma do Imersão Adobe Flex recebeu alguns &#8220;presentinhos&#8221;. Dentre eles o componente PodFlip, utilizado numa das aplicações que desenvolvemos aqui na DClick e que o pessoal já andou vendo por aí. 
É verdade que o Flex 4 e com as novas capacidades 3D do Flash Player isso será bem mais fácil no [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Rotacionando%20Janelas%20no%20Flex%3A%20PodFlip%20Component%22%20http%3A%2F%2Ftinyurl.com%2Fy8krr9p" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>A ultima turma do <a href="http://www.egenial.com.br/imersao-flex">Imersão Adobe Flex</a> recebeu alguns &#8220;presentinhos&#8221;. Dentre eles o componente PodFlip, utilizado numa das aplicações que desenvolvemos aqui na DClick e que o pessoal já andou vendo por aí. </p>
<p>É verdade que o Flex 4 e com as novas capacidades 3D do Flash Player isso será bem mais fácil no futuro. Mas enquanto este dia não chega agora é a hora de compartilhar este componente com o restante de comunidade. Espero que seja util em algum projeto para vocês.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="370" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="src" value="http://blip.tv/play/gs0tgcbCEAA" /><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><embed type="application/x-shockwave-flash" width="540" height="370" src="http://blip.tv/play/gs05gcfPNAI" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://www.becklog.org/wp-content/uploads/2010/PodFlipUsage.zip">Clique aqui</a> para fazer o download do código fonte deste screencast.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/02/22/rotacionando-janelas-no-flex-podflip-component/pt/feed/pt/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typesafe Enum em Action Script 3</title>
		<link>http://blog.dclick.com.br/2010/02/18/typesafe-enum-em-action-script-3/pt/</link>
		<comments>http://blog.dclick.com.br/2010/02/18/typesafe-enum-em-action-script-3/pt/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:23:48 +0000</pubDate>
		<dc:creator>Rafael Martinelli</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2431</guid>
		<description><![CDATA[Twitter! O screencast abaixo é bem simples, porém muito eficiente para proteger o seu código. É importante ressaltar que isso tudo é necessário, pois o Action Script 3 não possui construtor privado e muito menos a implementação nativa de Enum.

]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Typesafe%20Enum%20em%20Action%20Script%203%22%20http%3A%2F%2Ftinyurl.com%2Fyzzulrz" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>O screencast abaixo é bem simples, porém muito eficiente para proteger o seu código. É importante ressaltar que isso tudo é necessário, pois o Action Script 3 não possui construtor privado e muito menos a implementação nativa de Enum.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="370" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="src" value="http://blip.tv/play/gs0tgcbCEAA" /><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><embed type="application/x-shockwave-flash" width="540" height="370" src="http://blip.tv/play/gs0tgcbCEAA" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/02/18/typesafe-enum-em-action-script-3/pt/feed/pt/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Oportunidade para Trabalhar com RIA no RJ</title>
		<link>http://blog.dclick.com.br/2010/02/12/oportunidade-para-trabalhar-com-ria-no-rj/pt/</link>
		<comments>http://blog.dclick.com.br/2010/02/12/oportunidade-para-trabalhar-com-ria-no-rj/pt/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 10:47:48 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Notícias]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2420</guid>
		<description><![CDATA[Twitter! A DClick RJ está contratando programadores RIA para trabalhar no RJ. 
Se você conhece bem Adobe Flex suas chances são grandes. Senão, veja se você encaixa na filosofia abaixo.
 
Nota: Os dois últimos projetos do vídeo foram desenvolvidos pela em parceria com a Roundarch dos EUA.
Os interessados devem enviar um email para: oportunidade@dclick.com.br. Quem [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Oportunidade%20para%20Trabalhar%20com%20RIA%20no%20RJ%22%20http%3A%2F%2Ftinyurl.com%2Fyzjn9jw" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>A DClick RJ está contratando programadores RIA para trabalhar no RJ. </p>
<p>Se você conhece bem Adobe Flex suas chances são grandes. Senão, veja se você encaixa na filosofia abaixo.</p>
<p><embed src="http://blip.tv/play/AerDepLlEg" type="application/x-shockwave-flash" width="540" height="315" allowscriptaccess="always" allowfullscreen="true"></embed> </p>
<p>Nota: Os dois últimos projetos do vídeo foram desenvolvidos pela em parceria com a Roundarch dos EUA.</p>
<p>Os interessados devem enviar um email para: oportunidade@dclick.com.br. Quem sabe no próximo <a href="http://blog.dclick.com.br/2008/12/19/enfim-a-tal-surpresa-dclick-team-teaser/pt/">DClick Team Teaser</a> o seu nome não faça parte da lista que aparece no final do clipe. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/02/12/oportunidade-para-trabalhar-com-ria-no-rj/pt/feed/pt/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Uma palestra por R$3,00 e um sorriso que não se paga</title>
		<link>http://blog.dclick.com.br/2010/02/01/uma-palestra-por-r300-e-um-sorriso-que-nao-se-paga/pt/</link>
		<comments>http://blog.dclick.com.br/2010/02/01/uma-palestra-por-r300-e-um-sorriso-que-nao-se-paga/pt/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 11:54:23 +0000</pubDate>
		<dc:creator>Rubens Albuquerque</dc:creator>
				<category><![CDATA[(Sem Categoria)]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2407</guid>
		<description><![CDATA[Twitter! Uma palestra do Flex For Kids: R$ 3,00.
O evento Flex For Kids: R$ 30,00.
Ver o incrível vídeo do Flex For Kids. Apenas 3 minutos.
Ajudar uma criança a sorrir: Não tem preço.
]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Uma%20palestra%20por%20R%243%2C00%20e%20um%20sorriso%20que%20n%E3o%20se%20paga%22%20http%3A%2F%2Ftinyurl.com%2Fybjja9c" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Uma palestra do Flex For Kids: <strong>R$ 3,00</strong>.<br />
O evento Flex For Kids: <strong>R$ 30,00</strong>.<br />
Ver o <a href="http://www.flexforkids.com/site/institutional">incrível vídeo do Flex For Kids.</a> <strong>Apenas 3 minutos</strong>.<br />
<a href="http://www.flexforkids.com/site/favored">Ajudar uma criança a sorrir</a>: <strong>Não tem preço.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/02/01/uma-palestra-por-r300-e-um-sorriso-que-nao-se-paga/pt/feed/pt/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como pegar o BitmapData e o ByteArray de um Embed no Flex?</title>
		<link>http://blog.dclick.com.br/2010/01/28/como-pegar-o-bitmapdata-e-o-bytearray-de-um-embed-no-flex/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/28/como-pegar-o-bitmapdata-e-o-bytearray-de-um-embed-no-flex/pt/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 12:17:39 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2397</guid>
		<description><![CDATA[Twitter! Quando você quer manipular imagens e outros tipos de arquivos no Flex, geralmente você precisa do BitmapData ou o ByteArray desse arquivo. A maioria das pessoas já sabe como fazer isso usando o Loader, mas é um pouco mais difícil encontrar informações sobre como fazer isso com arquivos "Embedados". Por isso, vou mostrar aqui [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Como%20pegar%20o%20BitmapData%20e%20o%20ByteArray%20de%20um%20Embed%20no%20Flex%3F%22%20http%3A%2F%2Ftinyurl.com%2Fyjyz3e9" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Quando você quer manipular imagens e outros tipos de arquivos no Flex, geralmente você precisa do BitmapData ou o ByteArray desse arquivo. A maioria das pessoas já sabe como fazer isso usando o Loader, mas é um pouco mais difícil encontrar informações sobre como fazer isso com arquivos "Embedados". Por isso, vou mostrar aqui como fazer!</p>
<p>Se você quer embedar uma imagem (JPEG, GIF ou PNG) no Flex, você precisa embedar em uma variável do tipo Class. O que a maioria das pessoas não sabe é que o tipo dessa classe será BitmapAsset e que BitmapAsset é uma subclasse da classe Bitmap. Então, você pode fazer isso:<br/><br/></p>
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showPlainTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">"image.png"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> MyEmbed:<span style="color: #000000; font-weight: bold;">Class</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> getBitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:BitmapData</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> bitmapAsset:BitmapAsset = <span style="color: #000000; font-weight: bold;">new</span> MyEmbed<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">return</span> bitmapAsset.<span style="color: #006600;">bitmapData</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Agora, para pegar o ByteArray, você precisa de uma pequena alteração. Você deve adicionar o parâmetro <em>mimeType="application/octet-stream"</em> para a metadata Embed. Com esse parâmetro, a variável Class será do tipo ByteArrayAsset, que é uma subclasse do ByteArray. Então, você poderá fazer isso:<br/><br/></p>
<div class="igBar"><span id="lactionscript-5"><a href="#" onclick="javascript:showPlainTxt('actionscript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-5">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">"image.png"</span>,mimeType=<span style="color: #ff0000;">"application/octet-stream"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> MyEmbed:<span style="color: #000000; font-weight: bold;">Class</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> getByteArray<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:ByteArrayAsset</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> byteArrayAsset:ByteArrayAsset = <span style="color: #000000; font-weight: bold;">new</span> MyEmbed<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">return</span> byteArrayAsset;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Dessa maneira, você pode até usar o Embed em algum arquivo TXT ou XML para sua aplicação e lê-lo facilmente! O ByteArray pode ser convertido para String dessa maneira:<br/><br/></p>
<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-6">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">"myTextFile.txt"</span>,mimeType=<span style="color: #ff0000;">"application/octet-stream"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> MyEmbed:<span style="color: #000000; font-weight: bold;">Class</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> readEmbeddedTxt<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> byteArrayAsset:ByteArrayAsset = <span style="color: #000000; font-weight: bold;">new</span> MyEmbed<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">return</span> byteArrayAsset.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Fácil, hein?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/28/como-pegar-o-bitmapdata-e-o-bytearray-de-um-embed-no-flex/pt/feed/pt/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex For Kids</title>
		<link>http://blog.dclick.com.br/2010/01/26/flex-for-kids/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/26/flex-for-kids/pt/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:43:46 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2395</guid>
		<description><![CDATA[Twitter! A DClick está patrocinando o Flex for Kids. Este é um evento muito especial para todos que trabalham não apenas com RIA, mas com desenvolvimento de Software em geral. Eu não preciso escrever muito neste post. Basta você clicar aqui e ver (sentir) o vídeo de menos de três minutos.
]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Flex%20For%20Kids%22%20http%3A%2F%2Ftinyurl.com%2Fylc267g" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>A DClick está patrocinando o Flex for Kids. Este é um evento muito especial para todos que trabalham não apenas com RIA, mas com desenvolvimento de Software em geral. Eu não preciso escrever muito neste post. Basta você <a href="http://www.flexforkids.com/site/institutional">clicar aqui</a> e ver (sentir) o vídeo de menos de três minutos.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/26/flex-for-kids/pt/feed/pt/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passando parâmetros para Event Handlers &#8211; Parte 2</title>
		<link>http://blog.dclick.com.br/2010/01/19/passando-parametros-para-event-handlers-parte-2/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/19/passando-parametros-para-event-handlers-parte-2/pt/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:01:01 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Otimização]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2392</guid>
		<description><![CDATA[Twitter! Ano passasdo perguntei ao Beck como passar parâmetros para Event Handlers adicionados dinamicamente, porque quando você adiciona Event Listener usando myComp.addEventListener(...), o handler deve esperar apenas o parâmetro do evento. O Beck deu uma solução para isso, mas deixou claro que é apenas uma solução "alternativa", não a melhor delas.
Alguns dias atrás eu estava [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Passando%20par%E2metros%20para%20Event%20Handlers%20-%20Parte%202%22%20http%3A%2F%2Ftinyurl.com%2Fydgb6p6" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Ano passasdo perguntei ao <a href="http://www.becklog.org/" target="_blank">Beck</a> como passar parâmetros para Event Handlers adicionados dinamicamente, porque quando você adiciona Event Listener usando <em>myComp.addEventListener(...)</em>, o handler deve esperar apenas o parâmetro do evento. O Beck <a href="http://blog.dclick.com.br/2007/11/29/passando-parametros-para-event-handlers-alem-do-event/pt/" target="_blank">deu uma solução</a> para isso, mas deixou claro que é apenas uma solução "alternativa", não a melhor delas.</p>
<p>Alguns dias atrás eu estava trabalhando com requisições simultâneas para o servidor e queria guardar o parâmetro da chamada, mas não queria ter que retornar ele do Java, então pensei em uma outra solução para isso. Considerando que seu Event Handler está esperando uma Function que tem somente um parâmetro Event, eu criei uma outra Function que retorna uma Function esperando um parâmetro Event. Mas o segredo é que o escopo de Function Closure permite que você acesse parâmetros tanto da primeira quanto da segunda Function, então você pode fazer isso:<br/><br/></p>
<div class="igBar"><span id="lxml-10"><a href="#" onclick="javascript:showPlainTxt('xml-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-10">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100%"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">initialize</span>=<span style="color: #ff0000;">"initApp()"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private function initApp():void</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttonA.addEventListener(MouseEvent.CLICK, buttonHandler(0x0000FF));</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttonB.addEventListener(MouseEvent.CLICK, buttonHandler(0xFF0000));</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private function buttonHandler(color:uint):Function</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return function(event:MouseEvent):void</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.setStyle(&quot;backgroundColor&quot;, color);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:HBox<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"buttonA"</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Blue"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"buttonB"</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Red"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:HBox<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Box <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"box"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"80"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"200"</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Mas e agora se você quiser usar esse Event Handler diretamente no MXML? Bem, você <strong>não</strong> pode fazer isso:<br/><br/></p>
<div class="igBar"><span id="lxml-11"><a href="#" onclick="javascript:showPlainTxt('xml-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-11">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Green"</span> <span style="color: #000066;">click</span>=<span style="color: #ff0000;">"buttonHandler(0x00FF00)"</span><span style="font-weight: bold; color: black;">/&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Isso não vai funcionar porque a Function que retorna da primeira Function está esperando um parâmetro Event. Então, você pode fazer assim:<br/><br/></p>
<div class="igBar"><span id="lxml-12"><a href="#" onclick="javascript:showPlainTxt('xml-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-12">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Green"</span> <span style="color: #000066;">click</span>=<span style="color: #ff0000;">"buttonHandler(0x00FF00)(event)"</span><span style="font-weight: bold; color: black;">/&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Estranho, não? Talvez mais um patter do <a href="http://blog.dclick.com.br/2007/02/02/freaktionscript/pt/" target="_blank">FreaktionScript</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/19/passando-parametros-para-event-handlers-parte-2/pt/feed/pt/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Flashcamp Brasil: &#8220;O dia seguinte&#8221;</title>
		<link>http://blog.dclick.com.br/2010/01/18/flashcamp-brasil-o-dia-seguinte/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/18/flashcamp-brasil-o-dia-seguinte/pt/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 12:13:38 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Notícias]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2382</guid>
		<description><![CDATA[Twitter! Sempre depois de um evento como o Flashcamp Brasil fica aquela sensação de "que pena que acabou". Mas no meu caso este sentimento é confuso. Ao mesmo tempo em que sentirei falta também me sinto aliviado. Eu tinha um grande receio que a minha apresentação não fosse bem recebida  e, para ser sincero, [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Flashcamp%20Brasil%3A%20%22O%20dia%20seguinte%22%22%20http%3A%2F%2Ftinyurl.com%2Fybbaoky" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Sempre depois de um evento como o <a href="http://www.flashcampbrasil.com.br">Flashcamp Brasil</a> fica aquela sensação de "que pena que acabou". Mas no meu caso este sentimento é confuso. Ao mesmo tempo em que sentirei falta também me sinto aliviado. Eu tinha um grande receio que a minha apresentação não fosse bem recebida  e, para ser sincero, assim como em tudo que eu faço, tinha a expectativa de estar fazendo algo de real valor.</p>
<p>Geralmente neste tipo de evento as pessoas esperam apresentações técnicas, demonstrações e coisas do tipo. E eles tiveram isso com  excelentes apresentações tanto dos americanos quanto dos brasileiros. Mas eu tomei um rumo totalmente contrário abordando assuntos muitos mais humanos do que tecnológicos, embora a relação entre um e outro fosse reforçada em alguns pontos da apresentação. E parece que foi uma boa abordagem pelo feedback que tive das pessoas que vieram me cumprimentar depois da palestra. </p>
<p>Eu fico extremamente feliz de perceber que no fundo as pessoas puderam sentir e não apenas ouvir o que eu falei. Afinal de contas, uma apresentação também é uma experiência. E para mim, este primeiro Flashcamp, foi um verdadeiro marco.</p>
<p><img alt="" src="http://blog.dclick.com.br/wp-content/uploads/outbox-shirt1.jpg" title="O segredo do Outbox" class="alignnone" width="500" height="311" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/18/flashcamp-brasil-o-dia-seguinte/pt/feed/pt/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>DClick no Flashcamp Brasil</title>
		<link>http://blog.dclick.com.br/2010/01/13/dclick-no-flashcamp-brasil/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/13/dclick-no-flashcamp-brasil/pt/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:43:17 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Notícias]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2364</guid>
		<description><![CDATA[Twitter! Nos dias 15/01/10 e 16/01/10 será realizado em Maceió o Flashcamp Brasil e eu estarei lá como palestrante representando a DClick e falando das ideias do OUTBOX. Mas eu não poderia simplesmente falar de algo que alguns já conhecem, embora, provavelmente, não seja a maioria presente no evento. 
Quando falamos em RIA inevitavelmente estamos [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22DClick%20no%20Flashcamp%20Brasil%22%20http%3A%2F%2Ftinyurl.com%2Fyduub98" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Nos dias 15/01/10 e 16/01/10 será realizado em Maceió o <a href="http://www.flashcampbrasil.com.br/">Flashcamp Brasil</a> e eu estarei lá como palestrante representando a DClick e falando das ideias do OUTBOX. Mas eu não poderia simplesmente falar de algo que alguns já conhecem, embora, provavelmente, não seja a maioria presente no evento. </p>
<p>Quando falamos em RIA inevitavelmente estamos falando de Experiência do Usuário. Mas deixando o "tecniquês" de lado, eu vejo experiência do usuário como um caso de <a href="http://pt.wikipedia.org/wiki/Empatia">empatia</a>. Pensar em experiência do usuário é, num certo sentido, se colocar no lugar do outro; é fazer algo para alguém esperando que ele goste do que foi feito. Por encarar isto desta forma eu vejo muitas das outras coisas que eu faço sob a perspectiva da experiência do meu publico. Seja um Software, seja um post, seja um screencast, seja um vídeo, seja um treinamento ou uma apresentação, eu sempre me coloco no lugar das pessoas para conseguir oferecer a elas uma experiência que as marque de alguma forma. A frase abaixo sintetiza muito bem esta minha maneira de pensar:</p>
<p><strong>"As pessoas esquecerão o que você disse, as pessoas esquecerão o que você fez, mas as pessoas nunca esquecerão como você as fez sentir." - Maya Angelou</strong></p>
<p>Espero, desta forma, marcar o publico presente no Flashcamp Brasil proporcionando-lhes bons momentos com uma palestra útil, agradável e, por que não, divertida. E se você ver um maluco com a camiseta da foto abaixo saberá que sou eu (e para você que estará no Flashcamp, saiba que a minha palestra já começou).</p>
<p><img src="http://blog.dclick.com.br/wp-content/uploads/outbox-shirt1.jpg" alt="OUTBOX Shirt" title="OUTBOX Shirt" width="500" height="311" class="alignnone size-full wp-image-2370" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/13/dclick-no-flashcamp-brasil/pt/feed/pt/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tamanho de Container com Base nos Filhos</title>
		<link>http://blog.dclick.com.br/2010/01/11/tamanho-de-container-com-base-nos-filhos/pt/</link>
		<comments>http://blog.dclick.com.br/2010/01/11/tamanho-de-container-com-base-nos-filhos/pt/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 23:51:54 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[Otimização]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2343</guid>
		<description><![CDATA[Twitter! Quando criamos um Container no Flex e não especificamos seu tamanho, o tamanho será calculado com base nos filhos que são adicionados ao Container. Porém, caso você especifique um tamanho para ele, o tamanho passa a ser o que você especificou e, caso ele seja menor do que o tamanho dos filhos, o componente [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Tamanho%20de%20Container%20com%20Base%20nos%20Filhos%22%20http%3A%2F%2Ftinyurl.com%2Fy9utt9r" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Quando criamos um Container no Flex e não especificamos seu tamanho, o tamanho será calculado com base nos filhos que são adicionados ao Container. Porém, caso você especifique um tamanho para ele, o tamanho passa a ser o que você especificou e, caso ele seja menor do que o tamanho dos filhos, o componente exibirá uma ScrollBar.</p>
<p>Mas e se você quiser que ele volta a calcular o tamanho para você? Existem alguns casos em que precisamos que isso seja feito, porém não podemos atribuir "null" ou -1 como valor na propriedade para que o Container volte ao comportamento inicial.</p>
<p>Conversando com o Beck Novaes a muito tempo atrás, ele me apontou uma solução para isso. Se vocês olharem no código de alguns componentes do Flex (como o Container ou o UIComponent), vocês encontrarão várias referências para a função isNaN() e, como muitos de vocês devem saber, NaN é o valor atribuído a variáveis numéricas quando não estão com algum valor numérico atribuído.</p>
<p><br/>Portanto, para que o componente calcule o tamanho para você, faça o seguinte:</p>
<div class="igBar"><span id="lactionscript-15"><a href="#" onclick="javascript:showPlainTxt('actionscript-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-15">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myContainer.<span style="color: #0066CC;">height</span> = <span style="color: #0066CC;">NaN</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Um exemplo completo:</p>
<div class="igBar"><span id="lxml-16"><a href="#" onclick="javascript:showPlainTxt('xml-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-16">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100%"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private function sizeChanged():void</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (group.selection == rbFixed)</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myVBox.height = 100;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myVBox.height = NaN;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:HBox<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:RadioButtonGroup <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"group"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">change</span>=<span style="color: #ff0000;">"sizeChanged()"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:RadioButton <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"rbFixed"</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Fixed Size"</span> <span style="color: #000066;">selected</span>=<span style="color: #ff0000;">"true"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">group</span>=<span style="color: #ff0000;">"{group}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:RadioButton <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"rbAuto"</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Auto Size"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">group</span>=<span style="color: #ff0000;">"{group}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:HBox<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:VBox <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"myVBox"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"150"</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">"#FFFFFF"</span> <span style="color: #000066;">horizontalAlign</span>=<span style="color: #ff0000;">"center"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Botão 1"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Botão 2"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Botão 3"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Botão 4"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Botão 5"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:VBox<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><br/>Estranho, não? Seria esse mais um pattern do <a href="http://blog.dclick.com.br/2007/02/02/freaktionscript/pt/" target="_blank">FreaktionScript</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2010/01/11/tamanho-de-container-com-base-nos-filhos/pt/feed/pt/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex serial is invalid (MacOs)</title>
		<link>http://blog.dclick.com.br/2009/12/16/flex-serial-is-invalid-macos/pt/</link>
		<comments>http://blog.dclick.com.br/2009/12/16/flex-serial-is-invalid-macos/pt/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:17:28 +0000</pubDate>
		<dc:creator>Bruno Sales</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/2009/12/16/flex-serial-is-invalid-macos/</guid>
		<description><![CDATA[Twitter! 
Não é a primeira vez que entro com meu serial do Flex Builder e recebo a mensagem dizendo que meu serial é inválido. Dessa vez fiz uma procura e achei o que causa tal mensagem de erro.
Por algum motivo quando executamos o eclipse, ele não sobe com a permissão de admin na máquina, o [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Flex%20serial%20is%20invalid%20%28MacOs%29%22%20http%3A%2F%2Ftinyurl.com%2Fycb6l2t" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p><img class="aligncenter size-full wp-image-2337" title="Flex_Serial_Invalid" src="http://blog.dclick.com.br/wp-content/uploads/Flex_Serial_Invalid.jpg" alt="Flex_Serial_Invalid" width="396" height="272" /></p>
<p>Não é a primeira vez que entro com meu serial do Flex Builder e recebo a mensagem dizendo que meu serial é inválido. Dessa vez fiz uma procura e achei o que causa tal mensagem de erro.</p>
<p>Por algum motivo quando executamos o eclipse, ele não sobe com a permissão de admin na máquina, o que o impossibilita de criar o aquivo license.properties que é responsável por armazenar seu serial.</p>
<p>Para resolver o problema, bastei executá-lo via Terminal com o comando sudo.</p>
<p>sudo /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse</p>
<p>Com tal comando, o eclipse foi executado com permissão de admin, o que possibilitou o serial ser salvo sem problema algum.</p>
<p><img class="aligncenter size-full wp-image-2339" title="Flex_Serial_Valid" src="http://blog.dclick.com.br/wp-content/uploads/Flex_Serial_Valid1.jpg" alt="Flex_Serial_Valid" width="390" height="272" /></p>
<p>Não sei se o mesmo acontece no windows, mas caso sim, basta executar o eclipse com permissão de admin que isso se resolverá.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2009/12/16/flex-serial-is-invalid-macos/pt/feed/pt/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terça Insana Mega Post: Um Post, um Screencast, dois componentes e um Podcast</title>
		<link>http://blog.dclick.com.br/2009/11/10/terca-insana-mega-post-um-post-um-screencast-dois-componentes-e-um-podcast/pt/</link>
		<comments>http://blog.dclick.com.br/2009/11/10/terca-insana-mega-post-um-post-um-screencast-dois-componentes-e-um-podcast/pt/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:06:48 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[Screencast]]></category>
		<category><![CDATA[TerÃ§a Insana]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2316</guid>
		<description><![CDATA[Twitter! Resolvi repetir a dose. E aqui estou eu novamente para mais um Terça Insana Megapost. 
Componente ValidatorGroup: Use apenas um validador para mais de um controle de interface.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ValidationGroup_1631722868"
			class="flashmovie"
			width="496"
			height="190">
	<param name="movie" value="/sources/validationGroup/ValidationGroup.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/validationGroup/ValidationGroup.swf"
			name="fm_ValidationGroup_1631722868"
			width="496"
			height="190">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download do ValidatorGroup
HTMLTextItemRenderer: Use um ItemRenderer super leve para formatação "avançada" de uma célula no DataGrid 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_HTMLTextItemRendererSample_1738884530"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/htmlRenderer/HTMLTextItemRendererSample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/htmlRenderer/HTMLTextItemRendererSample.swf"
			name="fm_HTMLTextItemRendererSample_1738884530"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download do HTMLTextItemRenderer
Screencast 2 [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Ter%E7a%20Insana%20Mega%20Post%3A%20Um%20Post%2C%20um%20Screencast%2C%20dois%20componentes%20e%20um%20Podcast%22%20http%3A%2F%2Ftinyurl.com%2Fyecu85e" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p>Resolvi repetir a dose. E aqui estou eu novamente para mais um Terça Insana Megapost. </p>
<p><strong>Componente ValidatorGroup: Use apenas um validador para mais de um controle de interface.</strong></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ValidationGroup_715467460"
			class="flashmovie"
			width="496"
			height="190">
	<param name="movie" value="/sources/validationGroup/ValidationGroup.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/validationGroup/ValidationGroup.swf"
			name="fm_ValidationGroup_715467460"
			width="496"
			height="190">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/ValidationGroup.zip">Download do ValidatorGroup</a><br/><br/></p>
<p><strong>HTMLTextItemRenderer: Use um ItemRenderer super leve para formatação "avançada" de uma célula no DataGrid </strong></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_HTMLTextItemRendererSample_617389243"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/htmlRenderer/HTMLTextItemRendererSample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/htmlRenderer/HTMLTextItemRendererSample.swf"
			name="fm_HTMLTextItemRendererSample_617389243"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/HTMLTextItemRendererSample.zip">Download do HTMLTextItemRenderer</a><br/><br/></p>
<p><strong>Screencast 2 em 1: Entenda os dois componentes em apenas 5 minutos. </strong></p>
<p><embed src="http://blip.tv/play/gs05ga37VQI" type="application/x-shockwave-flash" width="540" height="370" allowscriptaccess="always" allowfullscreen="true"></embed><br />
<br/><br/><br />
<strong>Podcast: Podcast baseado numa "reunião/apresentação" sobre componentetização e vários assuntos "avançados" de Flex na DClick. Neste Podcast a Parte I da reunião com foco em componentização e performance no front-end</strong><br />
<br/><br />
[audio:http://www.becklog.org/wp-content/uploads/2009/reuniao-parte1.mp3]<br />
<br/><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/reuniao-parte1.mp3">Download do Podcast</a><br />
<br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2009/11/10/terca-insana-mega-post-um-post-um-screencast-dois-componentes-e-um-podcast/pt/feed/pt/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.becklog.org/wp-content/uploads/2009/reuniao-parte1.mp3" length="18506732" type="audio/mpeg" />
		</item>
		<item>
		<title>Terça Insana Mega-Post: Um post, três screencasts e três componentes</title>
		<link>http://blog.dclick.com.br/2009/11/03/terca-insana-mega-post-um-post-tres-screencasts-e-tres-componentes/pt/</link>
		<comments>http://blog.dclick.com.br/2009/11/03/terca-insana-mega-post-um-post-tres-screencasts-e-tres-componentes/pt/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 16:55:45 +0000</pubDate>
		<dc:creator>Beck Novaes</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[Screencast]]></category>

		<guid isPermaLink="false">http://blog.dclick.com.br/?p=2269</guid>
		<description><![CDATA[Twitter! Componente QuickView: Faça um Preview dos seus DTOs

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_QuickViewUsage2_1372463045"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/megapost/QuickViewUsage2.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/QuickViewUsage2.swf"
			name="fm_QuickViewUsage2_1372463045"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download do QuickView
Componente QuickSearch: Faça um QuickSearch como no MAC OS

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_QuickSearch_751844826"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/megapost/QuickSearch.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/QuickSearch.swf"
			name="fm_QuickSearch_751844826"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download do QuickSearch
Componente PodStack: Faça transições sem abrir mão do View Stack

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_PodStackSample_949143600"
			class="flashmovie"
			width="500"
			height="450">
	<param name="movie" value="/sources/megapost/PodStackSample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/PodStackSample.swf"
			name="fm_PodStackSample_949143600"
			width="500"
			height="450">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download do PodStack
Screencast 3 em 1: Entenda tudo isso em apenas 12 minutos. Nada de textos [...]]]></description>
			<content:encoded><![CDATA[<span class="post-twitter" ><a href="http://twitter.com/home?status=DClick%20Post%3A%20%20%22Ter%E7a%20Insana%20Mega-Post%3A%20Um%20post%2C%20tr%EAs%20screencasts%20e%20tr%EAs%20componentes%22%20http%3A%2F%2Ftinyurl.com%2Fyh458kt" title="Twitter! <br /><br />" rel="nofollow">Twitter! <br /><br /></a></span><p><strong>Componente QuickView: Faça um Preview dos seus DTOs</strong></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_QuickViewUsage2_1099459213"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/megapost/QuickViewUsage2.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/QuickViewUsage2.swf"
			name="fm_QuickViewUsage2_1099459213"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/QuickView.zip">Download do QuickView</a><br/><br/></p>
<p><strong>Componente QuickSearch: Faça um QuickSearch como no MAC OS</strong></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_QuickSearch_1655915942"
			class="flashmovie"
			width="496"
			height="264">
	<param name="movie" value="/sources/megapost/QuickSearch.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/QuickSearch.swf"
			name="fm_QuickSearch_1655915942"
			width="496"
			height="264">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/QuickSearch.zip">Download do QuickSearch</a><br/><br/></p>
<p><strong>Componente PodStack: Faça transições sem abrir mão do View Stack</strong></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_PodStackSample_1395083239"
			class="flashmovie"
			width="500"
			height="450">
	<param name="movie" value="/sources/megapost/PodStackSample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/sources/megapost/PodStackSample.swf"
			name="fm_PodStackSample_1395083239"
			width="500"
			height="450">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<a href="http://www.becklog.org/wp-content/uploads/2009/PodStackSample.zip">Download do PodStack</a><br/><br/></p>
<p><strong>Screencast 3 em 1: Entenda tudo isso em apenas 12 minutos. Nada de textos e posts longos complicados.</strong></p>
<p><embed src="http://blip.tv/play/AYGsn1wA" type="application/x-shockwave-flash" width="540" height="370" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dclick.com.br/2009/11/03/terca-insana-mega-post-um-post-tres-screencasts-e-tres-componentes/pt/feed/pt/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
