<?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>Flexeando - Flex, Air, RIA, UIX, AS3... &#187; QuickTips</title>
	<atom:link href="http://flexeando.com/category/quicktips/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexeando.com</link>
	<description>Blog de Flex, Air, RIA, UIX, AS3...</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:00:00 +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>Múltiples Item Renderers en un DataGroup</title>
		<link>http://flexeando.com/2010/10/18/multiples-item-renderers-en-un-datagroup/</link>
		<comments>http://flexeando.com/2010/10/18/multiples-item-renderers-en-un-datagroup/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 04:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Código]]></category>
		<category><![CDATA[QuickTips]]></category>

		<guid isPermaLink="false">http://flexeando.com/?p=743</guid>
		<description><![CDATA[Interesante receta que me encontré en el Cookbook, pongan atención en la propiedad itemRendererFunction del DataGroup. NOTA: Útil para renders más complejos. &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;s:Group xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34; xmlns:mx=&#34;library://ns.adobe.com/flex/mx&#34; creationComplete=&#34;init()&#34;&#62; &#60;fx:Declarations&#62; &#60;!-- Place non-visual elements (e.g., services, value objects) here --&#62; &#60;/fx:Declarations&#62; &#160; &#60;fx:Script&#62; &#60;![CDATA[ import com.flexeando.multipleitemrenderers.render.FemeninoItemRender; import com.flexeando.multipleitemrenderers.render.MasculinoItemRender; &#160; import mx.collections.ArrayCollection; import mx.utils.ObjectProxy; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Interesante receta que me encontré en el Cookbook, pongan atención en la propiedad <strong>itemRendererFunction</strong> del <strong>DataGroup</strong>. </p>
<p>NOTA: Útil para renders más complejos.</p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Group xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
		 xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
		 xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
		 creationComplete=&quot;init()&quot;&gt;
	&lt;fx:Declarations&gt;
		&lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;
	&lt;/fx:Declarations&gt;
&nbsp;
	&lt;fx:Script&gt;
		&lt;![CDATA[
			import com.flexeando.multipleitemrenderers.render.FemeninoItemRender;
			import com.flexeando.multipleitemrenderers.render.MasculinoItemRender;
&nbsp;
			import mx.collections.ArrayCollection;
			import mx.utils.ObjectProxy;
&nbsp;
			[Bindable]
			private var arrDataProvider:ArrayCollection = new ArrayCollection();
&nbsp;
			private var object:ObjectProxy;
&nbsp;
			private function init():void
			{
				for (var i:uint = 0; i &lt; 20; i++)
				{
					object = new ObjectProxy();
					object.name = &quot;Nombre + &quot; + i;
					object.lastName = &quot;Apellido + &quot; + i;
&nbsp;
					if (i % 2 == 0)
						object.sexo = &quot;H&quot;;
					else			
						object.sexo = &quot;M&quot;;
&nbsp;
					arrDataProvider.addItem(object);
				}
			}
&nbsp;
			private function getItemRender(o:Object):IFactory
			{
				var clazz:Class;
&nbsp;
				switch (o.sexo)
				{
					case &quot;M&quot;:
						clazz = FemeninoItemRender;
						break;
					case &quot;H&quot;:
						clazz = MasculinoItemRender;
						break;
				}
&nbsp;
				return new ClassFactory(clazz);
			}
&nbsp;
		]]&gt;
	&lt;/fx:Script&gt;
&nbsp;
	&lt;s:DataGroup height=&quot;600&quot; width=&quot;100&quot; 
				 dataProvider=&quot;{arrDataProvider}&quot;
				 itemRenderer=&quot;com.flexeando.multipleitemrenderers.render.FemeninoItemRender&quot;
				 itemRendererFunction=&quot;getItemRender&quot;&gt;
		&lt;s:layout&gt;
			&lt;s:VerticalLayout/&gt;
		&lt;/s:layout&gt;
	&lt;/s:DataGroup&gt;
&lt;/s:Group&gt;</pre></div></div>

<p><span id="more-743"></span><br />
<em>FemeninoItemRender.mxml</em></p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:ItemRenderer xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
				xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
				xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; 
				autoDrawBackground=&quot;true&quot;&gt;
&nbsp;
	&lt;s:states&gt;
		&lt;s:State name=&quot;nomal&quot; /&gt;
		&lt;s:State name=&quot;inactive&quot; /&gt;
	&lt;/s:states&gt;
&nbsp;
	&lt;s:Rect height=&quot;100%&quot; width=&quot;100%&quot;&gt;
		&lt;s:fill&gt;
			&lt;s:SolidColor color=&quot;0xFFB6C1&quot;/&gt;
		&lt;/s:fill&gt;
	&lt;/s:Rect&gt;
&nbsp;
	&lt;s:Group&gt;
		&lt;s:layout&gt;
			&lt;s:HorizontalLayout /&gt;
		&lt;/s:layout&gt;
		&lt;s:Label text=&quot;{data.name}&quot;/&gt;
		&lt;s:Label text=&quot;{data.lastName}&quot;/&gt;
		&lt;s:Label text=&quot;{data.sexo}&quot;/&gt;
	&lt;/s:Group&gt;
&nbsp;
&lt;/s:ItemRenderer&gt;</pre></div></div>

<p><em>MasculinoItemRender.mxml</em></p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:ItemRenderer xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
				xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
				xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; 
				autoDrawBackground=&quot;true&quot;&gt;
&nbsp;
	&lt;s:states&gt;
		&lt;s:State name=&quot;nomal&quot; /&gt;
		&lt;s:State name=&quot;inactive&quot; /&gt;
	&lt;/s:states&gt;
&nbsp;
	&lt;s:Rect height=&quot;100%&quot; width=&quot;100%&quot;&gt;
		&lt;s:fill&gt;
			&lt;s:SolidColor color=&quot;0x00FFFF&quot;/&gt;
		&lt;/s:fill&gt;
	&lt;/s:Rect&gt;
&nbsp;
	&lt;s:Group&gt;
		&lt;s:layout&gt;
			&lt;s:HorizontalLayout verticalAlign=&quot;middle&quot; /&gt;
		&lt;/s:layout&gt;
		&lt;s:Label text=&quot;{data.name}&quot;/&gt;
		&lt;s:Label text=&quot;{data.lastName}&quot;/&gt;
		&lt;s:Label text=&quot;{data.sexo}&quot;/&gt;
	&lt;/s:Group&gt;
&nbsp;
&lt;/s:ItemRenderer&gt;</pre></div></div>

<p><strong>Resultado</strong>:</p>
<p><img src="http://flexeando.com/wp-content/uploads/2010/10/ItemRenderDataGroup.png" alt="" title="ItemRenderDataGroup" width="503" height="398" class="aligncenter size-full wp-image-746" /></p>
]]></content:encoded>
			<wfw:commentRss>http://flexeando.com/2010/10/18/multiples-item-renderers-en-un-datagroup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[QuickTip] Asignar iconos a una aplicación AIR</title>
		<link>http://flexeando.com/2010/07/07/asignar-iconos-a-una-aplicacion-air/</link>
		<comments>http://flexeando.com/2010/07/07/asignar-iconos-a-una-aplicacion-air/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 17:26:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[QuickTips]]></category>

		<guid isPermaLink="false">http://flexeando.com/?p=627</guid>
		<description><![CDATA[Para asignar iconos de instalación a tu aplicación AIR debes modificar las siguientes líneas en el archivo nombreDeTuProyecto-app.xml, indicando la ubicación de cada uno, deben cumplir con las medidas indicadas. &#60;!-- The icon the system uses for the application. For at least one resolution, specify the path to a PNG file included in the AIR [...]]]></description>
			<content:encoded><![CDATA[<p>Para asignar iconos de instalación a tu aplicación AIR debes modificar las siguientes líneas en el archivo <em>nombreDeTuProyecto-app.xml</em>, indicando la ubicación de cada uno, deben cumplir con las medidas indicadas.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">	<span style="color: #808080; font-style: italic;">&lt;!-- The icon the system uses for the application. For at least one resolution,</span>
<span style="color: #808080; font-style: italic;">		 specify the path to a PNG file included in the AIR package. Optional. --&gt;</span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;icon<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image16x16<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>assets/image/icons/16x16.png<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image16x16<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image32x32<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>assets/image/icons/32x32.png<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image32x32<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image48x48<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>assets/image/icons/48x48.png<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image48x48<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image128x128<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>assets/image/icons/128x128.png<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image128x128<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/icon<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://flexeando.com/2010/07/07/asignar-iconos-a-una-aplicacion-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

