<?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>CODIGO.actionscript &#187; Flex</title>
	<atom:link href="http://www.codigoactionscript.org/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigoactionscript.org</link>
	<description>Blog de programación en ActionScript. Tips, tutoriales, ejemplos de Adobe Flash, Flex y AIR</description>
	<lastBuildDate>Mon, 31 May 2010 14:58:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Error de selección de color en el componente RichTextEditor de Flex</title>
		<link>http://www.codigoactionscript.org/error-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex/</link>
		<comments>http://www.codigoactionscript.org/error-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:44:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[componente]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[componentes]]></category>
		<category><![CDATA[RicheTextEditor]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=605</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2010/04/thumb1.jpg" class="attachment-310x85 wp-post-image" alt="" title="thumb1" /><p>Hoy andaba trabajando con el componente RichTextEditor de Flex y me encontré con un fallo del componente en relación a la selección del color desde el ColorPicker para una selección de texto. Este bug ya venía de Flex 3, y [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/' rel='bookmark' title='Permanent Link: Acceder a los itemRenderer de un componente lista en Flex'>Acceder a los itemRenderer de un componente lista en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
<li><a href='http://www.codigoactionscript.org/como-personalizar-el-icono-del-panel-de-alerta-de-flex/' rel='bookmark' title='Permanent Link: Cómo personalizar el icono del panel de Alerta de Flex'>Cómo personalizar el icono del panel de Alerta de Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hoy andaba trabajando con el componente <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/RichTextEditor.html">RichTextEditor</a> de <a href="http://www.cristalab.com/tips/tags/flex">Flex</a> y me encontré con un fallo del componente en relación a la selección del color desde el <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/ColorPicker.html">ColorPicker</a> para una selección de texto. Este bug ya venía de <a href="http://www.cristalab.com/tips/tags/flex">Flex</a> 3, y parece que en <a href="http://www.cristalab.com/tips/tags/flashbuilder">Flash Builder 4</a> sigue sin solucionarse.</p>
<p>El fallo consiste en que si desde el colorPicker introducimos directamente el código del color en el campo de texto al presionar la tecla ENTER para validar el color introducido, este ENTER nos introduce tambien un salto de línea dentro de la caja de texto del editor haciendo a su vez que el texto seleccionado desaparezca. Un error del compomente bastante impresentable <img src='http://www.codigoactionscript.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Pero la solución es bastante fácil. Basta con hacer que el TextArea del componente no sea editable en el momento en el que abrimos el colorPicker, de manera de que el ENTER de validación del color no afectará al texto. Una vez cerrado el colorPicker volveremos a hacer editable el texto.</p>
<div align="center"><img src="http://l4c.me/uploads/richtexteditor-1272636790_full550.jpg" alt="" /></div>
<p>En cuanto al código, únicamente necesitaremos escuchar los eventos de apertura y cierre del colorPicker, y modificar la propiedad editable del TrextArea.</p>
<p>Podemos crearnos un componente propio que extienda del componente RichTextEditor implementando este código. Este sería el componente:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-2">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:RichTextEditor xmlns:fx=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:s=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:mx=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; creationComplete=<span style="color: #ff0000;">"init()"</span>&gt;<br />
&nbsp; &nbsp; &lt;fx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">DropdownEvent</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorPicker</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>DropdownEvent.<span style="color: #006600;">OPEN</span>, colorPickerOpen<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorPicker</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>DropdownEvent.<span style="color: #0066CC;">CLOSE</span>, colorPickerClose<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> colorPickerOpen<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">textArea</span>.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> colorPickerClose<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">textArea</span>.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;<br />
&nbsp; &nbsp; &lt;/fx:Script&gt;<br />
&lt;/mx:RichTextEditor&gt;</div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Error%20de%20selecci%C3%B3n%20de%20color%20en%20el%20componente%20RichTextEditor%20de%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F&amp;t=Error%20de%20selecci%C3%B3n%20de%20color%20en%20el%20componente%20RichTextEditor%20de%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F&amp;title=Error%20de%20selecci%C3%B3n%20de%20color%20en%20el%20componente%20RichTextEditor%20de%20Flex&amp;annotation=Hoy%20andaba%20trabajando%20con%20el%20componente%20%20de%20%20y%20me%20encontr%C3%A9%20con%20un%20fallo%20del%20componente%20en%20relaci%C3%B3n%20a%20la%20selecci%C3%B3n%20del%20color%20desde%20el%20%20para%20una%20selecci%C3%B3n%20de%20texto.%20Este%20bug%20ya%20ven%C3%ADa%20de%20%203%2C%20y%20parece%20que%20en%20%20sigue%20sin%20solucionarse.%0D%0A%0D%0AEl%20fallo%20cons" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F&amp;title=Error%20de%20selecci%C3%B3n%20de%20color%20en%20el%20componente%20RichTextEditor%20de%20Flex&amp;notes=Hoy%20andaba%20trabajando%20con%20el%20componente%20%20de%20%20y%20me%20encontr%C3%A9%20con%20un%20fallo%20del%20componente%20en%20relaci%C3%B3n%20a%20la%20selecci%C3%B3n%20del%20color%20desde%20el%20%20para%20una%20selecci%C3%B3n%20de%20texto.%20Este%20bug%20ya%20ven%C3%ADa%20de%20%203%2C%20y%20parece%20que%20en%20%20sigue%20sin%20solucionarse.%0D%0A%0D%0AEl%20fallo%20cons" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Error%20de%20selecci%C3%B3n%20de%20color%20en%20el%20componente%20RichTextEditor%20de%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Ferror-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/' rel='bookmark' title='Permanent Link: Acceder a los itemRenderer de un componente lista en Flex'>Acceder a los itemRenderer de un componente lista en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
<li><a href='http://www.codigoactionscript.org/como-personalizar-el-icono-del-panel-de-alerta-de-flex/' rel='bookmark' title='Permanent Link: Cómo personalizar el icono del panel de Alerta de Flex'>Cómo personalizar el icono del panel de Alerta de Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/error-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disponible Flash Catalyst Beta 2</title>
		<link>http://www.codigoactionscript.org/disponible-flash-catalyst-beta-2/</link>
		<comments>http://www.codigoactionscript.org/disponible-flash-catalyst-beta-2/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 23:06:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Noticias]]></category>
		<category><![CDATA[catalyst]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/disponible-flash-catalyst-beta-2/</guid>
		<description><![CDATA[<p>Ya está disponible una nueva versión de Adobe Flash Catalyst para descargar y probar desde los Labs de Adobe. La versión Beta 2.</p>
<p>
Esta versión trae unas interesantes mejoras y novedades, tales como:</p>

Rendimiento más rápido. Un aumento notable en el rendimiento sobre la beta 1
Mejorada de interfaz gráfica, más fácil de usar para el usuario.
Importar archivos de soporte de vídeo. Controles de reproducción estándar o personalizados.
Efectos de sonido. Añadir efectos de sonido a las interacciones.
Más componentes. Tales como deslizadores, botones de radio, el panel de desplazamiento, etc..
Más interacciones. Especifique una dirección [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/disponible-adobe-air-2-beta-2/' rel='bookmark' title='Permanent Link: Disponible Adobe AIR 2 beta 2'>Disponible Adobe AIR 2 beta 2</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Permanent Link: Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
<li><a href='http://www.codigoactionscript.org/betas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs/' rel='bookmark' title='Permanent Link: Betas de Flash Builder 4 y Flash Catalyst en Adobe Labs'>Betas de Flash Builder 4 y Flash Catalyst en Adobe Labs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ya está disponible una nueva versión de <a href="http://labs.adobe.com/technologies/flashcatalyst/">Adobe Flash Catalyst</a> para descargar y probar desde los Labs de Adobe. La versión <strong><a href="https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_flashcatalyst">Beta 2</a></strong>.</p>
<p>
Esta versión trae unas interesantes mejoras y novedades, tales como:</p>
<ul>
<li><strong>Rendimiento más rápido</strong>. Un aumento notable en el rendimiento sobre la beta 1</li>
<li><strong>Mejorada de interfaz gráfica</strong>, más fácil de usar para el usuario.</li>
<li><strong>Importar archivos de soporte de vídeo</strong>. Controles de reproducción estándar o personalizados.</li>
<li><strong>Efectos de sonido</strong>. Añadir efectos de sonido a las interacciones.</li>
<li><strong>Más componentes</strong>. Tales como deslizadores, botones de radio, el panel de desplazamiento, etc..</li>
<li><strong>Más interacciones</strong>. Especifique una dirección URL para abrir durante una interacción, reproducir un vídeo, etc..</li>
<li><strong>Exportar a AIR</strong>. Exportación de proyectos que se ejecutan fuera del navegador con Adobe AIR.</li>
<li><strong>Aceleración de movimiento</strong>. Definir la aceleración de movimiento para una animación más fluida.</li>
<li><strong>Filtros</strong>. Múltiples filtros para modificar los gráficos como la adición de sombra, brillo, Blur, etc...</li>
<li><strong>Los modos de mezcla.</strong> Seleccionar cómo los objetos se mezclan con otros objetos.</li>
<li><strong>Contenido Accesible.</strong> Crear un archivo SWF accesibles que pueden ser utilizados por los discapacitados visuales.</li>
<li><strong>SWF control.</strong> Ejecutar un archivo SWF desde un  frame específico.</li>
<li>Las opciones de salida del SWF. Crear un archivo SWF que se despliegue, redistribuible y tiene fuentes incrustadas.</li>
</ul>
<p></p>
<p>Ryan Stewart, a grabado un video donde nos muestra estas mejoras:</p>
<p><object width="550" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6896851&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6896851&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="350"></embed></object></p>
<p></p>
<p>Desde este enlace podemos descargarnos la Beta 2:</p>
<p><a href="https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_flashcatalyst">https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_flashcatalyst</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Disponible%20Flash%20Catalyst%20Beta%202%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F&amp;t=Disponible%20Flash%20Catalyst%20Beta%202" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F&amp;title=Disponible%20Flash%20Catalyst%20Beta%202&amp;annotation=Ya%20est%C3%A1%20disponible%20una%20nueva%20versi%C3%B3n%20de%20Adobe%20Flash%20Catalyst%20para%20descargar%20y%20probar%20desde%20los%20Labs%20de%20Adobe.%20La%20versi%C3%B3n%20Beta%202.%0D%0A%0D%0AEsta%20versi%C3%B3n%20trae%20unas%20interesantes%20mejoras%20y%20novedades%2C%20tales%20como%3A%0D%0A%0D%0A%09Rendimiento%20m%C3%A1s%20r%C3%A1pido.%20Un%20aumento%20nota" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F&amp;title=Disponible%20Flash%20Catalyst%20Beta%202&amp;notes=Ya%20est%C3%A1%20disponible%20una%20nueva%20versi%C3%B3n%20de%20Adobe%20Flash%20Catalyst%20para%20descargar%20y%20probar%20desde%20los%20Labs%20de%20Adobe.%20La%20versi%C3%B3n%20Beta%202.%0D%0A%0D%0AEsta%20versi%C3%B3n%20trae%20unas%20interesantes%20mejoras%20y%20novedades%2C%20tales%20como%3A%0D%0A%0D%0A%09Rendimiento%20m%C3%A1s%20r%C3%A1pido.%20Un%20aumento%20nota" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Disponible%20Flash%20Catalyst%20Beta%202&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fdisponible-flash-catalyst-beta-2%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/disponible-adobe-air-2-beta-2/' rel='bookmark' title='Permanent Link: Disponible Adobe AIR 2 beta 2'>Disponible Adobe AIR 2 beta 2</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Permanent Link: Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
<li><a href='http://www.codigoactionscript.org/betas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs/' rel='bookmark' title='Permanent Link: Betas de Flash Builder 4 y Flash Catalyst en Adobe Labs'>Betas de Flash Builder 4 y Flash Catalyst en Adobe Labs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/disponible-flash-catalyst-beta-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe en Vivo 2009 en su versión onLine</title>
		<link>http://www.codigoactionscript.org/adobe-en-vivo-2009-en-su-version-online/</link>
		<comments>http://www.codigoactionscript.org/adobe-en-vivo-2009-en-su-version-online/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 11:40:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Cursos]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashLite]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Noticias]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[adobe usergroup conferencia garageflash adoveenvivo]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=473</guid>
		<description><![CDATA[<p>Como ya saben, Adobe en Vivo es una seria de conferencias internacionales que son de forma presencial organizadas por Adobe User Group Perú (Garage Flash), invitando a los expositores a pasar una semana en Perú, dando conferencias gratuitas y talleres privados. Como este evento se hace de forma anual, hemos pensado hacer una versión onLine con 21 conferencistas entre manager, co-manager, lideres de comunidad y de opinión web.</p>

Martes 14

Realidad Aumentada
Perú - Elder Vásquez (eldervaz)
Entrelazado vs progresivo en After Effects
España - Jorge Mochon
Contenido dinámico con InDesign
Colombia - Marlon Ceballos
Haciendo la Web [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/url-para-ver-las-conferencias-de-adobe-en-vivo-2009/' rel='bookmark' title='Permanent Link: URL para ver las conferencias de Adobe en Vivo 2009'>URL para ver las conferencias de Adobe en Vivo 2009</a></li>
<li><a href='http://www.codigoactionscript.org/videos-online-de-las-sesiones-del-adobe-max-2009/' rel='bookmark' title='Permanent Link: Videos online de las sesiones del Adobe MAX 2009'>Videos online de las sesiones del Adobe MAX 2009</a></li>
<li><a href='http://www.codigoactionscript.org/curso-de-adobe-air-online-y-gratuito-en-video2brain/' rel='bookmark' title='Permanent Link: Curso de Adobe AIR, online y gratuito, en Video2brain'>Curso de Adobe AIR, online y gratuito, en Video2brain</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Como ya saben, <a href="http://www.garageflash.com/adobe-en-vivo-version-online-del-14-al-18-de-julio">Adobe en Vivo</a> es una seria de conferencias internacionales que son de forma presencial organizadas por <a href="http://www.garageflash.com">Adobe User Group Perú (Garage Flash)</a>, invitando a los expositores a pasar una semana en Perú, dando conferencias gratuitas y talleres privados. Como este evento se hace de forma anual, hemos pensado hacer una versión onLine con 21 conferencistas entre manager, co-manager, lideres de comunidad y de opinión web.</p>
<div align="center"><img src="http://www.adobenvivo.com/f/images/aev_logo.png" alt="" /></div>
<h1>Martes 14</h1>
<ul>
<li><strong>Realidad Aumentada</strong><br />
Perú - <a href="http://www.garageflash.com">Elder Vásquez</a> (eldervaz)</li>
<li><strong>Entrelazado vs progresivo en After Effects</strong><br />
España - <a href="http://www.adobelabo.com">Jorge Mochon</a></li>
<li><strong>Contenido dinámico con InDesign</strong><br />
Colombia - <a href="http://xpert.com.co">Marlon Ceballos</a></li>
<li><strong>Haciendo la Web más Dinámica con Premiere, Encore y After Effects</strong><br />
Rep.Dominicana - <a href="http://www.sdq.com.do">Luis Sosa</a></li>
</ul>
<h1>Miércoles 15</h1>
<ul>
<li><strong>Experiencia del Usuario</strong><br />
México - <a href="http://www.activ.com.mx">Edgar Parada</a></li>
<li><strong>Coldfusion 9</strong><br />
Ecuador - <a href="http://www.adobeenvivo.com">Michael Borbor</a></li>
<li><strong>LiveCycle</strong><br />
Chile - <a href="http://www.garageflash.com">Héctor Castro</a></li>
<li><strong>Técnicas de Alto Rendimiento en Sitios Web</strong><br />
Argentina - <a href="http://groups.adobe.com/groups/93e61be362/summary">Maximiliano R. Firtman</a></li>
</ul>
<h1>Jueves 16</h1>
<ul>
<li><strong>AIR vs Flash Player API's</strong><br />
España - <a href="http://www.joangarnet.com/blog">Joan Garnet</a></li>
<li><strong>Trabajo con Adobe BrowserLab</strong><br />
España - <a href="http://www.dwug.es">Andres Cayon</a></li>
<li><strong>ActionScript 3.0</strong><br />
México - <a href="http://www.activ.com.mx">Alberto Gonzalez</a></li>
<li><strong>Soluciones para real-time applications</strong><br />
Perú - <a href="http://funciton.com">Fernando Flórez</a> (fernando)</li>
</ul>
<h1>Viernes 17</h1>
<ul>
<li><strong>Mobile Video - Dandelion Player for Flash Lite</strong><br />
España - <a href="http://www.blocketpc.com">Raul Jimenez</a> (elecash)</li>
<li><strong>Juegos en Flash Lite</strong><br />
España - <a href="http://www.blocketpc.com">Marcos González</a></li>
<li><strong>Flash Builder 4 - Data Centric Development</strong><br />
España - <a href="http://groups.adobe.com/groups/d542f14d2e/summary">David Lopez</a></li>
<li><strong>ADOBE</strong><br />
EEUU - <a href="http://groups.adobe.com/pages/home">John Koch</a> - Community Manager<br />
International Developer Relations Manager</li>
</ul>
<h1>Sábado 18</h1>
<ul>
<li><strong>Flash Catalyst</strong><br />
España - <a href="http://groups.adobe.com/groups/3924ff1ac2/summary">Guillermo de la Iglesia</a> (Zguillez)</li>
<li><strong>El impacto de los Medios sociales</strong><br />
Bolivia - <a href="http://www.aeromental.com">Daniel Sempértegui</a> (DanielSemper)</li>
<li><strong>Semántica en XHTML</strong><br />
Perú - <a href="http://aprendiendoweb.com">Germán Martínez</a></li>
<li><strong>Promete algo útil</strong><br />
Colombia - <a href="http://foros.cristalab.com">Freddie Vega</a> (freddie)</li>
<li><strong>Progressive Enhancement</strong><br />
Venezuela - <a href="http://thefricky.wordpress.com">César Frick</a> (thefricky)</li>
<li><strong>Equipos Web en el Mundo Real™</strong><br />
Perú - <a href="http://indexante.com">César Soplín</a> (cesars)</li>
</ul>
<p>Esta conferencia será transmitida por Adobe Connect, y para ello solo tienes que ingresar a la dirección web que será publicada el mismo día del evento.</p>
<p>Verifica la fecha y hora de cada charla en: http://www.adobenvivo.com/online/</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Adobe%20en%20Vivo%202009%20en%20su%20versi%C3%B3n%20onLine%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F&amp;t=Adobe%20en%20Vivo%202009%20en%20su%20versi%C3%B3n%20onLine" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F&amp;title=Adobe%20en%20Vivo%202009%20en%20su%20versi%C3%B3n%20onLine&amp;annotation=Como%20ya%20saben%2C%20%20es%20una%20seria%20de%20conferencias%20internacionales%20que%20son%20de%20forma%20presencial%20organizadas%20por%20%2C%20invitando%20a%20los%20expositores%20a%20pasar%20una%20semana%20en%20Per%C3%BA%2C%20dando%20conferencias%20gratuitas%20y%20talleres%20privados.%20Como%20este%20evento%20se%20hace%20de%20forma%20an" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F&amp;title=Adobe%20en%20Vivo%202009%20en%20su%20versi%C3%B3n%20onLine&amp;notes=Como%20ya%20saben%2C%20%20es%20una%20seria%20de%20conferencias%20internacionales%20que%20son%20de%20forma%20presencial%20organizadas%20por%20%2C%20invitando%20a%20los%20expositores%20a%20pasar%20una%20semana%20en%20Per%C3%BA%2C%20dando%20conferencias%20gratuitas%20y%20talleres%20privados.%20Como%20este%20evento%20se%20hace%20de%20forma%20an" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Adobe%20en%20Vivo%202009%20en%20su%20versi%C3%B3n%20onLine&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadobe-en-vivo-2009-en-su-version-online%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/url-para-ver-las-conferencias-de-adobe-en-vivo-2009/' rel='bookmark' title='Permanent Link: URL para ver las conferencias de Adobe en Vivo 2009'>URL para ver las conferencias de Adobe en Vivo 2009</a></li>
<li><a href='http://www.codigoactionscript.org/videos-online-de-las-sesiones-del-adobe-max-2009/' rel='bookmark' title='Permanent Link: Videos online de las sesiones del Adobe MAX 2009'>Videos online de las sesiones del Adobe MAX 2009</a></li>
<li><a href='http://www.codigoactionscript.org/curso-de-adobe-air-online-y-gratuito-en-video2brain/' rel='bookmark' title='Permanent Link: Curso de Adobe AIR, online y gratuito, en Video2brain'>Curso de Adobe AIR, online y gratuito, en Video2brain</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobe-en-vivo-2009-en-su-version-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Betas de Flash Builder 4 y Flash Catalyst en Adobe Labs</title>
		<link>http://www.codigoactionscript.org/betas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs/</link>
		<comments>http://www.codigoactionscript.org/betas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 00:27:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Noticias]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[betas]]></category>
		<category><![CDATA[platform]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=444</guid>
		<description><![CDATA[<p>Ya están disponibles para la descarga las betas de Flash Builder 4 (antes conocido como Flex Builder) y Flash Catalyst desde los Labs de Adobe.</p>
<p></p>
Flash Builder 4 Standalone Installer

 Download Flash Builder 4 Installer for Windows (EXE, 285 MB)
 Download Flash Builder 4 Installer for Macintosh (DMG, 277 MB)

Flash Builder 4 Plugin for Eclipse

 Download Flash Builder 4 Plugin for Windows (EXE, 314 MB)
 Download Flash Builder 4 Plugin for Macintosh (DMG, 306 MB)

Flex Component Kit for Adobe Flash Professional CS4

 Download Flex Component Kit for Flash Professional CS4 (ZIP, [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/adobe-lanza-adobe-labs-ideas-para-flash-catalyst/' rel='bookmark' title='Permanent Link: Adobe lanza Adobe Labs Ideas para Flash Catalyst'>Adobe lanza Adobe Labs Ideas para Flash Catalyst</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-conectar-un-diseno-de-flash-catalyst-a-una-base-de-datos-con-flash-builder/' rel='bookmark' title='Permanent Link: AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder'>AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder</a></li>
<li><a href='http://www.codigoactionscript.org/recursos-para-flash-catalyst-cs5/' rel='bookmark' title='Permanent Link: Recursos para Flash Catalyst CS5'>Recursos para Flash Catalyst CS5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ya están disponibles para la descarga las betas de <strong>Flash Builder 4</strong> (antes conocido como <a href="http://www.cristalab.com/blog/flex-builder-cambia-de-nombre-a-flash-builder-c73107l/">Flex Builder</a>) y <strong>Flash Catalyst</strong> desde los <a href="http://labs.adobe.com">Labs de Adobe</a>.</p>
<p><a href="http://labs.adobe.com"><img src="http://farm4.static.flickr.com/3405/3586636879_ce5d0102fa.jpg" alt="" /></a></p>
<h3 id="standalone">Flash Builder 4 Standalone Installer</h3>
<ul>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000597&amp;e=labs_flashbuilder4">Download Flash Builder 4 Installer for Windows</a> (EXE, 285 MB)</li>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000596&amp;e=labs_flashbuilder4">Download Flash Builder 4 Installer for Macintosh</a> (DMG, 277 MB)</li>
</ul>
<h3 id="plugin">Flash Builder 4 Plugin for Eclipse</h3>
<ul>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000595&amp;e=labs_flashbuilder4">Download Flash Builder 4 Plugin for Windows</a> (EXE, 314 MB)</li>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000594&amp;e=labs_flashbuilder4">Download Flash Builder 4 Plugin for Macintosh</a> (DMG, 306 MB)</li>
</ul>
<h3 id="flex_compkit">Flex Component Kit for Adobe Flash Professional CS4</h3>
<ul>
<li> <a href="http://download.macromedia.com/pub/labs/flex/4/flex4_compkit_b1_060109.zip">Download Flex Component Kit for Flash Professional CS4</a> (ZIP, 224 KB)</li>
</ul>
<h3 id="flex_test">Flex 4 Test Automation Plug-in</h3>
<ul>
<li> <a href="http://download.macromedia.com/pub/labs/flex/4/flex4_automation_install_060109.zip">Download Flex 4 Test Automation Plug-in</a> (ZIP, 390 KB)</li>
<li> <a href="http://download.macromedia.com/pub/labs/flex/4/flex4_automation_demo_060109.zip">Download Flex 4 Test Automation Demonstration</a> (ZIP, 7.2 MB)</li>
</ul>
<h3 id="livecycle_dataservices3">Flash Catalyst Beta</h3>
<ul>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000593&amp;e=labs_flashcatalyst">Download Flash Catalyst for Windows</a> (EXE, 292 MB)</li>
<li> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=FS0000592&amp;e=labs_flashcatalyst">Download Flash Catalyst for Macintosh</a> (DMG, 335 MB)</li>
</ul>
<p>Para poder activar la beta de Flash Catalyst durante un periodo de prueba de 30 días, necesitamos insertar el numero de serie público que nos ofrece Adobe:</p>
<ul class="link-list">
<li><strong>Windows</strong> — 1395-1003-6369-7619-0587-6556</li>
<li><strong>Macintosh</strong> — 1395-0008-4467-2145-8771-1212</li>
</ul>
<p>También tenemos disponibles los siguientes <strong>recursos sobre el nuevo Flash Builder 4</strong>:</p>
<h3>Learn about Flash Builder 4</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/intro/" target="_blank">Introducing Flash Builder 4</a><br />
Discover new design-centric, data-centric, and developer productivity features in the beta.</li>
<li><strong>Tutorial: </strong><a href="http://www.adobe.com/devnet/flex/articles/flex4builder_whatsnew.html" target="_blank">What’s New in Flash Builder 4<br />
</a>Learn about the three main feature themes in this release.</li>
<li><strong>Resources: </strong><a href="http://www.adobe.com/devnet/flex/flex_cf.html" target="_blank">Flex for ColdFusion developers Learning Center<br />
</a>Explore the new data-centric development features of Flash Builder 4 beta.</li>
</ul>
<h3>Learn about Flex 4 SDK</h3>
<ul>
<li><strong>Tutorial:</strong> <a href="http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html" target="_blank">What's New in Flex 4 SDK</a><br />
Learn what you’ll find as you explore the Flex 4 SDK beta.</li>
<li><strong>Tutorial:</strong> <a href="http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html" target="_blank">Differences between Flex 3 SDK and Flex 4 SDK<br />
</a>Learn about the differences in architecture, components, layouts, use of states, and effects.</li>
<li><strong>Tutorial:</strong> <a href="http://www.adobe.com/devnet/flex/articles/flex4_effects_pt1.html" target="_blank">Effects in Adobe Flex 4 SDK ― Part 1: Basic Effects<br />
</a>See the basic infrastructure of the new effects in this release.</li>
</ul>
<h3>Working with Flash Builder 4</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/productivity/" target="_blank">Developer Productivity in Flash Builder 4<br />
</a>Presenter: David Zuckerman; Adobe</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/recordsets/" target="_blank">Handling Large Recordsets in Flash Builder 4<br />
</a>Presenter: Tim Buntel; Adobe</li>
<li><strong>Video: </strong><a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/debug/" target="_blank">Debug and Test Code in Flash Builder 4<br />
</a>Presenter: David Zuckerman; Adobe</li>
<li><strong>Video: </strong><a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/flexsdk/" target="_blank">Work with Flex 4 SDK in Flash Builder 4<br />
</a>Presenter: David Zuckerman; Adobe</li>
<li><strong>Video: </strong><a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/php1/" target="_blank">PHP Services in Flash Builder 4 (Part 1)<br />
</a>Presenter: Tom Lane; Adobe</li>
<li><strong>Video: </strong><a href="http://labs.adobe.com/technologies/flashbuilder4/tutorials/php2/" target="_blank">PHP Services in Flash Builder 4 (Part 2)<br />
</a>Presenter: Tom Lane; Adobe</li>
</ul>
<h3 id="community">Learn from the Community</h3>
<ul>
<li><strong>Cookbook:</strong> <a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&amp;postId=14627&amp;productId=2&amp;loc=en_US" target="_blank">Styling the Data Tip on a Spark HSlider Control<br />
</a>Posted by: Peter deHaan</li>
<li><strong>Cookbook:</strong> <a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&amp;postId=14666&amp;productId=2&amp;loc=en_US" target="_blank">Performance Improvements by Returning Early in Setter Functions<br />
</a>Posted by: Greg Lafrance</li>
<li><strong>Cookbook:</strong> <a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&amp;postId=14486&amp;productId=2&amp;loc=en_US" target="_blank">Using Flex 4 and Twitpic API to Display Pictures Thumbnails<br />
</a>Posted by: Romain Pouclet</li>
</ul>
<p>Y para <strong>Flash Catalyst</strong> tenemos los siguientes recursos:</p>
<h3>Learn about Flash Catalyst</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/overview/" target="_blank">Introducing Flash Catalyst</a><br />
Discover what you can do with this new interaction design tool for creating interactive experiences.</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/wirefr/" target="_blank">Wire Framing in Flash Catalyst</a><br />
Learn how to quickly wireframe a design concept in Flash Catalyst.</li>
<li><strong>Notes:</strong> <a href="http://www.adobe.com/go/learn_fc_new_features_en" target="_blank">Learn about Flash Catalyst</a><br />
Refer to these feature notes that detail what you can do with this interaction design tool.</li>
</ul>
<h3>Start Building Your First Flash Catalyst Application</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/firstapp/" target="_blank">Create your First Application with Flash Catalyst</a><br />
Let Ty Voilter step you through the process of prototyping an interactive application.</li>
<li><strong>Tutorial:</strong> <a href="http://www.adobe.com/devnet/flashcatalyst/articles/get_started_with_flash_catalyst.html" target="_blank">Start Designing in Flash Catalyst</a><br />
Learn to create a simple SWF content from a Photoshop design.</li>
<li><strong>Tutorial:</strong> <a href="http://www.adobe.com/devnet/flashcatalyst/articles/building_datacentric_app_flashcast_flashbuilder.html" target="_blank">Build a Data-Centric Application Using Flash Catalyst and Flash Builder 4</a><br />
Learn to create a browser-based address book application from an Illustrator design.</li>
</ul>
<h3>Explore Flash Catalyst Workflows</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/fwexport/" target="_blank">Exporting from Fireworks CS4 to Flash Catalyst</a><br />
Presenter: Doug Winnie; Adobe</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/fw/" target="_blank">Use Native Fireworks CS4 Files in Flash Catalyst</a><br />
Presenter: Doug Winnie; Adobe</li>
</ul>
<h3>Work with Flash Catalyst</h3>
<ul>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/datalist/" target="_blank">Create a Data List in Flash Catalyst</a><br />
Presenter: Nate Bishop; Adobe</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/animate/" target="_blank">Create Animations in Flash Catalyst</a><br />
Presenter: Ty Voilter; Adobe</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/objects/" target="_blank">Distribute Objects to States with Flash Catalyst</a><br />
Presenter: Doug Winnie; Adobe</li>
<li><strong>Video:</strong> <a href="http://labs.adobe.com/technologies/flashcatalyst/tutorials/libraries/" target="_blank">Sharing Flash Catalyst Libraries</a><br />
Presenter: Doug Winnie; Adobe</li>
</ul>
<h3 id="community">Learn from the Community</h3>
<ul>
<li><strong>Video:</strong> <a href="http://www.lynda.com/flashcatalyst">Flash Catalyst Preview</a><br />
Presenter: Mordy Golding; Lynda.com</li>
<li><strong>Screencast:</strong> <a href="http://www.gotoandlearn.com/play?id=110" target="_blank">Using Flash Catalyst and Flex 4 beta 1 – Part 1:  Design a Twitter search app</a><br />
Presenter: Lee Brimelow; gotoAndLearn()</li>
<li><strong>Screencast:</strong> <a href="http://www.gotoandlearn.com/play?id=111" target="_blank">Using Flash Catalyst and Flex 4 beta 1 – Part 2: Hook up the app to live data</a><br />
Presenter: Lee Brimelow; gotoAndLearn()</li>
<li><strong>Screencast:</strong> <a href="http://www.insideria.com/2009/06/flash-catalyst-beta-1-top-bran.html" target="_blank">Introducing Flash Catalyst – Part 1: Good practices for preparing Illustrator files</a><br />
Presenter: Garth Braithwaite; InsideRIA</li>
<li><strong>Screencast:</strong> <a href="http://www.insideria.com/2009/06/flash-catalyst-beta-1-top-bran-1.html" target="_blank">Introducing Flash Catalyst – Part 2: Import and export artwork and libraries</a><br />
Presenter: Garth Braithwaite; InsideRIA</li>
<li><strong>Tutorial: </strong><a href="http://www.peachpit.com/articles/article.aspx?p=1352541" target="_blank">Adobe Flash Catalyst: A Designer's Ticket to the Interactive World</a><br />
Andrew Faulkner; Peachpit</li>
</ul>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Betas%20de%20Flash%20Builder%204%20y%20Flash%20Catalyst%20en%20Adobe%20Labs%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F&amp;t=Betas%20de%20Flash%20Builder%204%20y%20Flash%20Catalyst%20en%20Adobe%20Labs" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F&amp;title=Betas%20de%20Flash%20Builder%204%20y%20Flash%20Catalyst%20en%20Adobe%20Labs&amp;annotation=Ya%20est%C3%A1n%20disponibles%20para%20la%20descarga%20las%20betas%20de%20Flash%20Builder%204%20%28antes%20conocido%20como%20Flex%20Builder%29%20y%20Flash%20Catalyst%20desde%20los%20Labs%20de%20Adobe.%0D%0A%0D%0A%0D%0AFlash%20Builder%204%20Standalone%20Installer%0D%0A%0D%0A%09%20Download%20Flash%20Builder%204%20Installer%20for%20Windows%20%28EXE%2C%20285%20M" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F&amp;title=Betas%20de%20Flash%20Builder%204%20y%20Flash%20Catalyst%20en%20Adobe%20Labs&amp;notes=Ya%20est%C3%A1n%20disponibles%20para%20la%20descarga%20las%20betas%20de%20Flash%20Builder%204%20%28antes%20conocido%20como%20Flex%20Builder%29%20y%20Flash%20Catalyst%20desde%20los%20Labs%20de%20Adobe.%0D%0A%0D%0A%0D%0AFlash%20Builder%204%20Standalone%20Installer%0D%0A%0D%0A%09%20Download%20Flash%20Builder%204%20Installer%20for%20Windows%20%28EXE%2C%20285%20M" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Betas%20de%20Flash%20Builder%204%20y%20Flash%20Catalyst%20en%20Adobe%20Labs&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fbetas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/adobe-lanza-adobe-labs-ideas-para-flash-catalyst/' rel='bookmark' title='Permanent Link: Adobe lanza Adobe Labs Ideas para Flash Catalyst'>Adobe lanza Adobe Labs Ideas para Flash Catalyst</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-conectar-un-diseno-de-flash-catalyst-a-una-base-de-datos-con-flash-builder/' rel='bookmark' title='Permanent Link: AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder'>AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder</a></li>
<li><a href='http://www.codigoactionscript.org/recursos-para-flash-catalyst-cs5/' rel='bookmark' title='Permanent Link: Recursos para Flash Catalyst CS5'>Recursos para Flash Catalyst CS5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/betas-de-flash-builder-4-y-flash-catalyst-en-adobe-labs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Panel de zoom de imágenes en Flex</title>
		<link>http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-flex/</link>
		<comments>http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-flex/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 21:04:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[componente]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=391</guid>
		<description><![CDATA[<p>Este ejemplo es, igual que hice en el post anterior, un ejemplo que he adaptado a Flex desde un ejemplo que hice hace tiempo para Flash. Se trata de un panel donde se ve un zoom de una parte de una imagen.</p>
<p>Este es el ejemplo montado en Flex:
</p>
<p>Y este es el código utilizado para la película principal:</p>



&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; xmlns:ui="*"
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; layout="absolute"
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; creationComplete="ini()"
&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/' rel='bookmark' title='Permanent Link: Ejemplo de Zoom con lupa en Flex'>Ejemplo de Zoom con lupa en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-actionscript-3/' rel='bookmark' title='Permanent Link: Panel de zoom de imágenes en ActionScript 3'>Panel de zoom de imágenes en ActionScript 3</a></li>
<li><a href='http://www.codigoactionscript.org/drag-and-drop-en-as3/' rel='bookmark' title='Permanent Link: Drag and Drop en AS3'>Drag and Drop en AS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Este ejemplo es, igual que hice en el <a href="http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/">post anterior</a>, un ejemplo que he adaptado a Flex desde un <a href="http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-actionscript-3/">ejemplo que hice hace tiempo</a> para Flash. Se trata de un panel donde se ve un zoom de una parte de una imagen.</p>
<p>Este es el ejemplo montado en Flex:<br />
<object width="505" height="260"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.codigoactionscript.org/files/EfectoZoomFlex/EfectoZoom.swf" /><embed src="http://www.codigoactionscript.org/files/EfectoZoomFlex/EfectoZoom.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="505" height="260"></embed></object></p>
<p>Y este es el código utilizado para la película principal:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-11">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:Application xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns:ui=<span style="color: #ff0000;">"*"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layout=<span style="color: #ff0000;">"absolute"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; creationComplete=<span style="color: #ff0000;">"ini()"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"505"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"260"</span>&gt;</p>
<p>&nbsp; &nbsp; &lt;mx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> ZoomFx;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _zoom:ZoomFx;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> ini<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _zoom=<span style="color: #000000; font-weight: bold;">new</span> ZoomFx<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, fotoZoom, panelZoom<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;<br />
&nbsp; &nbsp; &lt;/mx:Script&gt;</p>
<p>&nbsp; &nbsp; &lt;mx:HBox horizontalCenter=<span style="color: #ff0000;">"0"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; verticalCenter=<span style="color: #ff0000;">"0"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;ui:FotoZoom id=<span style="color: #ff0000;">"fotoZoom"</span>/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;ui:PanelZoom id=<span style="color: #ff0000;">"panelZoom"</span>/&gt;<br />
&nbsp; &nbsp; &lt;/mx:HBox&gt;</p>
<p>&lt;/mx:Application&gt;</p></div>
</div>
</div>
</div>
<p></p>
<p>Este sería el componente que contiene la foto en grande:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-12">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:Canvas xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"350"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"250"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderStyle=<span style="color: #ff0000;">"solid"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderThickness=<span style="color: #ff0000;">"1"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">"#000000"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; horizontalScrollPolicy=<span style="color: #ff0000;">"off"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; verticalScrollPolicy=<span style="color: #ff0000;">"off"</span>&gt;<br />
&nbsp; &nbsp; &lt;mx:Image id=<span style="color: #ff0000;">"foto"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;scaleContent=<span style="color: #ff0000;">"false"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:source&gt;img/Waterfall.<span style="color: #006600;">jpg</span>&lt;/mx:source&gt;<br />
&nbsp; &nbsp; &lt;/mx:Image&gt;</p>
<p>&lt;/mx:Canvas&gt;</p></div>
</div>
</div>
</div>
<p></p>
<p>Y este el componente que contiene el panel de preview:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-13">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:Canvas xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"140"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"100"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderStyle=<span style="color: #ff0000;">"solid"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderThickness=<span style="color: #ff0000;">"1"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">"#000000"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; horizontalScrollPolicy=<span style="color: #ff0000;">"off"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; verticalScrollPolicy=<span style="color: #ff0000;">"off"</span>&gt;<br />
&nbsp; &nbsp; &lt;mx:Image id=<span style="color: #ff0000;">"foto"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;scaleContent=<span style="color: #ff0000;">"true"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"140"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"100"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;horizontalCenter=<span style="color: #ff0000;">"0"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;verticalCenter=<span style="color: #ff0000;">"0"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:source&gt;img/Waterfall.<span style="color: #006600;">jpg</span>&lt;/mx:source&gt;<br />
&nbsp; &nbsp; &lt;/mx:Image&gt;<br />
&nbsp; &nbsp; &lt;mx:Canvas x=<span style="color: #ff0000;">"0"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; y=<span style="color: #ff0000;">"0"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"70"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"50"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">"#FF0000"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; backgroundAlpha=<span style="color: #ff0000;">"0.5"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderStyle=<span style="color: #ff0000;">"solid"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; borderThickness=<span style="color: #ff0000;">"1"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">"#FF0000"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; id=<span style="color: #ff0000;">"zoomDrag"</span>&gt;<br />
&nbsp; &nbsp; &lt;/mx:Canvas&gt;<br />
&lt;/mx:Canvas&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Solo quedaría la clase de que controla el efecto:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-14">
<div class="actionscript">package<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">containers</span>.<span style="color: #006600;">Canvas</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Image</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">UIComponent</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ZoomFx<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _stage:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _fotoZoom:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _panelZoom:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _distX:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _distY:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _porcentajeX:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _porcentajeY:<span style="color: #0066CC;">Number</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//----------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ZoomFx<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>:UIComponent, fotoZoom:UIComponent, panelZoom:UIComponent<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _stage=<span style="color: #0066CC;">stage</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _fotoZoom=fotoZoom;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _panelZoom=panelZoom;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iniZoomDrag<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> iniZoomDrag<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> drag:Canvas=_panelZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"zoomDrag"</span><span style="color: #66cc66;">&#41;</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_DOWN</span>, onStartDrag<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_UP</span>, onStopDrag<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_OUT</span>, onStopDrag<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onStartDrag<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> canvas:Canvas=<span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; canvas.<span style="color: #0066CC;">startDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _stage.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, onMouseDragMove<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onStopDrag<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> canvas:Canvas=<span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; canvas.<span style="color: #0066CC;">stopDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _stage.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, onMouseDragMove<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onMouseDragMove<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calculaDist<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mueveVisorZona<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlaPosiciones<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> calculaDist<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> drag:Canvas=_panelZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"zoomDrag"</span><span style="color: #66cc66;">&#41;</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> foto:Image=_fotoZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span> as Image;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _porcentajeX=<span style="color: #cc66cc;">100</span> / <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #0066CC;">width</span> / _panelZoom.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _porcentajeY=<span style="color: #cc66cc;">100</span> / <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #0066CC;">height</span> / _panelZoom.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #0066CC;">width</span>=_fotoZoom.<span style="color: #0066CC;">width</span> * _porcentajeX / <span style="color: #cc66cc;">100</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #0066CC;">height</span>=_fotoZoom.<span style="color: #0066CC;">height</span> * _porcentajeY / <span style="color: #cc66cc;">100</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distX=drag.<span style="color: #006600;">x</span> * <span style="color: #cc66cc;">100</span> / _porcentajeX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distY=drag.<span style="color: #006600;">y</span> * <span style="color: #cc66cc;">100</span> / _porcentajeY;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distX=<span style="color: #66cc66;">&#40;</span>_distX &lt;<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #cc66cc;">0</span> : _distX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distY=<span style="color: #66cc66;">&#40;</span>_distY &lt;<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #cc66cc;">0</span> : _distY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> mueveVisorZona<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> drag:Canvas=_panelZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"zoomDrag"</span><span style="color: #66cc66;">&#41;</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> foto:Image=_fotoZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span> as Image;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">x</span>=-_distX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">y</span>=-_distY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> controlaPosiciones<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> drag:Canvas=_panelZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"zoomDrag"</span><span style="color: #66cc66;">&#41;</span> as Canvas;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> foto:Image=_fotoZoom.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span> as Image;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>drag.<span style="color: #006600;">x</span> &lt;<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">x</span>=<span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>drag.<span style="color: #006600;">x</span>&gt; _panelZoom.<span style="color: #0066CC;">width</span> - drag.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">x</span>=_panelZoom.<span style="color: #0066CC;">width</span> - drag.<span style="color: #0066CC;">width</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>drag.<span style="color: #006600;">y</span> &lt;_panelZoom.<span style="color: #006600;">y</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">y</span>=_panelZoom.<span style="color: #006600;">y</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>drag.<span style="color: #006600;">y</span>&gt; _panelZoom.<span style="color: #006600;">y</span> + _panelZoom.<span style="color: #0066CC;">height</span> - drag.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drag.<span style="color: #006600;">y</span>=_panelZoom.<span style="color: #006600;">y</span> + _panelZoom.<span style="color: #0066CC;">height</span> - drag.<span style="color: #0066CC;">height</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #006600;">x</span>&gt; <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">x</span>=<span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #006600;">x</span> &lt;_fotoZoom.<span style="color: #0066CC;">width</span> - foto.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">x</span>=_fotoZoom.<span style="color: #0066CC;">width</span> - foto.<span style="color: #0066CC;">width</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #006600;">y</span>&gt; <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">y</span>=<span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>foto.<span style="color: #006600;">y</span> &lt;_fotoZoom.<span style="color: #0066CC;">height</span> - foto.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foto.<span style="color: #006600;">y</span>=_fotoZoom.<span style="color: #0066CC;">height</span> - foto.<span style="color: #0066CC;">height</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Panel%20de%20zoom%20de%20im%C3%A1genes%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F&amp;t=Panel%20de%20zoom%20de%20im%C3%A1genes%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F&amp;title=Panel%20de%20zoom%20de%20im%C3%A1genes%20en%20Flex&amp;annotation=Este%20ejemplo%20es%2C%20igual%20que%20hice%20en%20el%20post%20anterior%2C%20un%20ejemplo%20que%20he%20adaptado%20a%20Flex%20desde%20un%20ejemplo%20que%20hice%20hace%20tiempo%20para%20Flash.%20Se%20trata%20de%20un%20panel%20donde%20se%20ve%20un%20zoom%20de%20una%20parte%20de%20una%20imagen.%0D%0A%0D%0AEste%20es%20el%20ejemplo%20montado%20en%20Flex%3A%0D%0A%0D%0A%09%0D" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F&amp;title=Panel%20de%20zoom%20de%20im%C3%A1genes%20en%20Flex&amp;notes=Este%20ejemplo%20es%2C%20igual%20que%20hice%20en%20el%20post%20anterior%2C%20un%20ejemplo%20que%20he%20adaptado%20a%20Flex%20desde%20un%20ejemplo%20que%20hice%20hace%20tiempo%20para%20Flash.%20Se%20trata%20de%20un%20panel%20donde%20se%20ve%20un%20zoom%20de%20una%20parte%20de%20una%20imagen.%0D%0A%0D%0AEste%20es%20el%20ejemplo%20montado%20en%20Flex%3A%0D%0A%0D%0A%09%0D" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Panel%20de%20zoom%20de%20im%C3%A1genes%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fpanel-de-zoom-de-imagenes-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/' rel='bookmark' title='Permanent Link: Ejemplo de Zoom con lupa en Flex'>Ejemplo de Zoom con lupa en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-actionscript-3/' rel='bookmark' title='Permanent Link: Panel de zoom de imágenes en ActionScript 3'>Panel de zoom de imágenes en ActionScript 3</a></li>
<li><a href='http://www.codigoactionscript.org/drag-and-drop-en-as3/' rel='bookmark' title='Permanent Link: Drag and Drop en AS3'>Drag and Drop en AS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-flex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ejemplo de Zoom con lupa en Flex</title>
		<link>http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/</link>
		<comments>http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 02:46:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[componente]]></category>
		<category><![CDATA[mascara]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=379</guid>
		<description><![CDATA[<p>Hace un tiempo escribí un ejemplo de zoom sobre una imagen con Flash. Justo ahora me acaban de preguntar como adaptar ese ejemplo a una aplicación Flex.</p>
<p>Adaptar ese ejemplo es fácil, ya que el código actionscript se puede reutilizar prácticamente igual. Lo único que hay que tener en cuenta es que no vamos a trabajar con un MovieClip con una máscara sino con componentes mxml de Flex.</p>
<p>Así es como quedará el ejemplo montado en Flex:</p>

Desplaza el mouse sobre la imagen para mover la lupa
<p></p>
<p>Esta seria nuestra aplicación Flex:</p>



&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-flex/' rel='bookmark' title='Permanent Link: Panel de zoom de imágenes en Flex'>Panel de zoom de imágenes en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flash-cs3/' rel='bookmark' title='Permanent Link: Ejemplo de Zoom con lupa en Flash CS3'>Ejemplo de Zoom con lupa en Flash CS3</a></li>
<li><a href='http://www.codigoactionscript.org/personalizar-componentes-de-flex-con-estilos-programaticos/' rel='bookmark' title='Permanent Link: Personalizar componentes de Flex con estilos programáticos'>Personalizar componentes de Flex con estilos programáticos</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hace un tiempo escribí un ejemplo de <a href="http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flash-cs3/">zoom sobre una imagen con Flash</a>. Justo ahora me acaban de preguntar como adaptar ese ejemplo a una aplicación <strong>Flex</strong>.</p>
<p>Adaptar ese ejemplo es fácil, ya que el código actionscript se puede reutilizar prácticamente igual. Lo único que hay que tener en cuenta es que no vamos a trabajar con un MovieClip con una máscara sino con componentes mxml de Flex.</p>
<p>Así es como quedará el ejemplo montado en Flex:</p>
<div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="350" height="225"><param name="movie" value="http://www.codigoactionscript.org/files/EfectoLupaFlex/EfectoLupa.swf" /><param name="quality" value="high" /><embed src="http://www.codigoactionscript.org/files/EfectoLupaFlex/EfectoLupa.swf" width="350" height="225" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object><br />
<em>Desplaza el mouse sobre la imagen para mover la lupa</em></div>
<p><br/><br/></p>
<p>Esta seria nuestra aplicación Flex:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-21">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:Application xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layout=<span style="color: #ff0000;">"absolute"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns:ui=<span style="color: #ff0000;">"*"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; creationComplete=<span style="color: #ff0000;">"ini()"</span>&gt;</p>
<p>&nbsp; &nbsp; &lt;mx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> LupaFx;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _lupa:LupaFx;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> ini<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa=<span style="color: #000000; font-weight: bold;">new</span> LupaFx<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, foto, lupa<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;<br />
&nbsp; &nbsp; &lt;/mx:Script&gt;<br />
&nbsp; &nbsp; &lt;mx:Image&nbsp; id=<span style="color: #ff0000;">"foto"</span> scaleContent=<span style="color: #ff0000;">"true"</span> horizontalCenter=<span style="color: #ff0000;">"0"</span> verticalCenter=<span style="color: #ff0000;">"0"</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"350"</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"250"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:source&gt;img/Waterfall.<span style="color: #006600;">jpg</span>&lt;/mx:source&gt;<br />
&nbsp; &nbsp; &lt;/mx:Image&gt;</p>
<p>&nbsp; &nbsp; &lt;ui:Lupa id=<span style="color: #ff0000;">"lupa"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;x=<span style="color: #ff0000;">"0"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;y=<span style="color: #ff0000;">"0"</span>/&gt;</p>
<p>&lt;/mx:Application&gt;</p></div>
</div>
</div>
</div>
<p></p>
<p>El componente que utilizaremos como lupa:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-22">
<div class="actionscript">&lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?&gt;<br />
&lt;mx:Canvas xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"100"</span> borderStyle=<span style="color: #ff0000;">"solid"</span> borderThickness=<span style="color: #ff0000;">"4"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">"#FF0000"</span> horizontalScrollPolicy=<span style="color: #ff0000;">"off"</span> verticalScrollPolicy=<span style="color: #ff0000;">"off"</span>&gt;<br />
&nbsp; &nbsp; &lt;mx:Image id=<span style="color: #ff0000;">"foto"</span> scaleContent=<span style="color: #ff0000;">"false"</span> y=<span style="color: #ff0000;">"0"</span> x=<span style="color: #ff0000;">"0"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:source&gt;img/Waterfall.<span style="color: #006600;">jpg</span>&lt;/mx:source&gt;<br />
&nbsp; &nbsp; &lt;/mx:Image&gt;</p>
<p>&lt;/mx:Canvas&gt;</p></div>
</div>
</div>
</div>
<p></p>
<p>Y la clase de actionscript que controlará el efecto:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-23">
<div class="actionscript">package<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">UIComponent</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> LupaFx<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _stage:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _foto:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _lupa:UIComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _distX:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _distY:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _porcentajeX:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _porcentajeY:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//----------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> LupaFx<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>:UIComponent, foto:UIComponent, lupa:UIComponent<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _stage=<span style="color: #0066CC;">stage</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _foto=foto;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa=lupa;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, lupaMouseMove<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lupaMouseMove<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//----------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> lupaMouseMove<span style="color: #66cc66;">&#40;</span>event:MouseEvent=<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calculaDist<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mueveLupa<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">x</span>=_foto.<span style="color: #006600;">mouseX</span> + _foto.<span style="color: #006600;">x</span> - _lupa.<span style="color: #0066CC;">width</span> / <span style="color: #cc66cc;">2</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">y</span>=_foto.<span style="color: #006600;">mouseY</span> + _foto.<span style="color: #006600;">y</span> - _lupa.<span style="color: #0066CC;">height</span> / <span style="color: #cc66cc;">2</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">x</span> &lt;_foto.<span style="color: #006600;">x</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">x</span>=_foto.<span style="color: #006600;">x</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">x</span>&gt; _foto.<span style="color: #006600;">x</span> + _foto.<span style="color: #0066CC;">width</span> - _lupa.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">x</span>=_foto.<span style="color: #006600;">x</span> + _foto.<span style="color: #0066CC;">width</span> - _lupa.<span style="color: #0066CC;">width</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">y</span> &lt;_foto.<span style="color: #006600;">y</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">y</span>=_foto.<span style="color: #006600;">y</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">y</span>&gt; _foto.<span style="color: #006600;">y</span> + _foto.<span style="color: #0066CC;">height</span> - _lupa.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">y</span>=_foto.<span style="color: #006600;">y</span> + _foto.<span style="color: #0066CC;">height</span> - _lupa.<span style="color: #0066CC;">height</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//----------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> calculaDist<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _porcentajeX=<span style="color: #cc66cc;">100</span> / <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">width</span> / <span style="color: #66cc66;">&#40;</span>_foto.<span style="color: #0066CC;">width</span> - _lupa.<span style="color: #0066CC;">width</span> / <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _porcentajeY=<span style="color: #cc66cc;">100</span> / <span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">height</span> / <span style="color: #66cc66;">&#40;</span>_foto.<span style="color: #0066CC;">height</span> - _lupa.<span style="color: #0066CC;">height</span> / <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distX=<span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">x</span> - _foto.<span style="color: #006600;">x</span><span style="color: #66cc66;">&#41;</span> / _porcentajeX * <span style="color: #cc66cc;">100</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _distY=<span style="color: #66cc66;">&#40;</span>_lupa.<span style="color: #006600;">y</span> - _foto.<span style="color: #006600;">y</span><span style="color: #66cc66;">&#41;</span> / _porcentajeY * <span style="color: #cc66cc;">100</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//----------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> mueveLupa<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">x</span>=-_distX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _lupa.<span style="color: #006600;">getChildByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"foto"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">y</span>=-_distY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Ejemplo%20de%20Zoom%20con%20lupa%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F&amp;t=Ejemplo%20de%20Zoom%20con%20lupa%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F&amp;title=Ejemplo%20de%20Zoom%20con%20lupa%20en%20Flex&amp;annotation=Hace%20un%20tiempo%20escrib%C3%AD%20un%20ejemplo%20de%20zoom%20sobre%20una%20imagen%20con%20Flash.%20Justo%20ahora%20me%20acaban%20de%20preguntar%20como%20adaptar%20ese%20ejemplo%20a%20una%20aplicaci%C3%B3n%20Flex.%0D%0A%0D%0AAdaptar%20ese%20ejemplo%20es%20f%C3%A1cil%2C%20ya%20que%20el%20c%C3%B3digo%20actionscript%20se%20puede%20reutilizar%20pr%C3%A1cticam" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F&amp;title=Ejemplo%20de%20Zoom%20con%20lupa%20en%20Flex&amp;notes=Hace%20un%20tiempo%20escrib%C3%AD%20un%20ejemplo%20de%20zoom%20sobre%20una%20imagen%20con%20Flash.%20Justo%20ahora%20me%20acaban%20de%20preguntar%20como%20adaptar%20ese%20ejemplo%20a%20una%20aplicaci%C3%B3n%20Flex.%0D%0A%0D%0AAdaptar%20ese%20ejemplo%20es%20f%C3%A1cil%2C%20ya%20que%20el%20c%C3%B3digo%20actionscript%20se%20puede%20reutilizar%20pr%C3%A1cticam" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Ejemplo%20de%20Zoom%20con%20lupa%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fejemplo-de-zoom-con-lupa-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/panel-de-zoom-de-imagenes-en-flex/' rel='bookmark' title='Permanent Link: Panel de zoom de imágenes en Flex'>Panel de zoom de imágenes en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flash-cs3/' rel='bookmark' title='Permanent Link: Ejemplo de Zoom con lupa en Flash CS3'>Ejemplo de Zoom con lupa en Flash CS3</a></li>
<li><a href='http://www.codigoactionscript.org/personalizar-componentes-de-flex-con-estilos-programaticos/' rel='bookmark' title='Permanent Link: Personalizar componentes de Flex con estilos programáticos'>Personalizar componentes de Flex con estilos programáticos</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/ejemplo-de-zoom-con-lupa-en-flex/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Acceder a los itemRenderer de un componente lista en Flex</title>
		<link>http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/</link>
		<comments>http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 03:45:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[componente]]></category>
		<category><![CDATA[DataProvider]]></category>
		<category><![CDATA[itemRenderer]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=361</guid>
		<description><![CDATA[<p>Este es un tip sencillo pero que me dió algún que otro dolor de cabeza al querer aplicar unos efectos sobre los componentes utilizados como itemRenderes dentro de un componente tipo lista en Flex. Se trata de cómo poder acceder a estos componentes para manipular su contenido a través de Actionscript.</p>
<p>Para acceder al componente del itemRenderer en concreto utilizaremos indexToItemRenderer, pasándole como parámetro el index del ítem que queremos obtener.</p>
<p>El detalle importante que debemos tener en cuenta es que no podemos referenciar un objeto que no sea visible dentro de [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/asignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex/' rel='bookmark' title='Permanent Link: Asignar una clase ActionScript 3 a un itemRenderer en Flex'>Asignar una clase ActionScript 3 a un itemRenderer en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/cargar-xml-en-un-componente-list-en-actionscript-3/' rel='bookmark' title='Permanent Link: Cargar XML en un componente List en Actionscript 3'>Cargar XML en un componente List en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/error-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex/' rel='bookmark' title='Permanent Link: Error de selección de color en el componente RichTextEditor de Flex'>Error de selección de color en el componente RichTextEditor de Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Este es un <a href="http://www.cristalab.com/tip">tip</a> sencillo pero que me dió algún que otro dolor de cabeza al querer aplicar unos efectos sobre los componentes utilizados como <strong>itemRenderes </strong>dentro de un componente tipo lista en <a href="http://www.cristalab.com/tips/tags/flex">Flex</a>. Se trata de cómo poder acceder a estos componentes para manipular su contenido a través de <a href="http://www.cristalab.com/tips/tags/actionscript_3">Actionscript</a>.</p>
<p>Para acceder al componente del itemRenderer en concreto utilizaremos <strong>indexToItemRenderer</strong>, pasándole como parámetro el index del ítem que queremos obtener.</p>
<p>El detalle importante que debemos tener en cuenta es que no podemos referenciar un objeto que no sea visible dentro de la zona del scroll, ya que hasta entonces devolvería valor <em>null</em>. Para ello deveremos realizar la comprobación con <strong>isItemVisible</strong>, y ejecutar las acciones solo sobre los componentes visibles.</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-26">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> total:uint = tileList.<span style="color: #006600;">dataProvider</span>.<span style="color: #0066CC;">length</span>;<br />
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:uint = <span style="color: #cc66cc;">0</span>; i &lt;total; i++<span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>tileList.<span style="color: #006600;">isItemVisible</span><span style="color: #66cc66;">&#40;</span>tileList.<span style="color: #006600;">dataProvider</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> item:<span style="color: #0066CC;">Object</span> = tileList.<span style="color: #006600;">indexToItemRenderer</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// resto de implementación sobre los componentes</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Acceder%20a%20los%20itemRenderer%20de%20un%20componente%20lista%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F&amp;t=Acceder%20a%20los%20itemRenderer%20de%20un%20componente%20lista%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F&amp;title=Acceder%20a%20los%20itemRenderer%20de%20un%20componente%20lista%20en%20Flex&amp;annotation=Este%20es%20un%20%20sencillo%20pero%20que%20me%20di%C3%B3%20alg%C3%BAn%20que%20otro%20dolor%20de%20cabeza%20al%20querer%20aplicar%20unos%20efectos%20sobre%20los%20componentes%20utilizados%20como%20dentro%20de%20un%20componente%20tipo%20lista%20en%20.%20Se%20trata%20de%20c%C3%B3mo%20poder%20acceder%20a%20estos%20componentes%20para%20manipular%20su%20c" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F&amp;title=Acceder%20a%20los%20itemRenderer%20de%20un%20componente%20lista%20en%20Flex&amp;notes=Este%20es%20un%20%20sencillo%20pero%20que%20me%20di%C3%B3%20alg%C3%BAn%20que%20otro%20dolor%20de%20cabeza%20al%20querer%20aplicar%20unos%20efectos%20sobre%20los%20componentes%20utilizados%20como%20dentro%20de%20un%20componente%20tipo%20lista%20en%20.%20Se%20trata%20de%20c%C3%B3mo%20poder%20acceder%20a%20estos%20componentes%20para%20manipular%20su%20c" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Acceder%20a%20los%20itemRenderer%20de%20un%20componente%20lista%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Facceder-a-los-itemrenderer-de-un-componente-lista-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/asignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex/' rel='bookmark' title='Permanent Link: Asignar una clase ActionScript 3 a un itemRenderer en Flex'>Asignar una clase ActionScript 3 a un itemRenderer en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/cargar-xml-en-un-componente-list-en-actionscript-3/' rel='bookmark' title='Permanent Link: Cargar XML en un componente List en Actionscript 3'>Cargar XML en un componente List en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/error-de-seleccion-de-color-en-el-componente-richtexteditor-de-flex/' rel='bookmark' title='Permanent Link: Error de selección de color en el componente RichTextEditor de Flex'>Error de selección de color en el componente RichTextEditor de Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Asignar una clase ActionScript 3 a un itemRenderer en Flex</title>
		<link>http://www.codigoactionscript.org/asignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex/</link>
		<comments>http://www.codigoactionscript.org/asignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 00:05:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[DataProvider]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[mxml]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=352</guid>
		<description><![CDATA[<p>En este Tip voy a explicar un sistema para poder controlar la funcionalidad de un componente usado como itemRenderer en cualquier componente de tipo lista desde una clase de ActionScript 3.</p>
<p>Supongamos que en nuestra aplicación Flex tenemos un compomente TileList al que le hemos asignado otro componente como itemRenderer:</p>



&#60;mx:TileList id="myTileList"&#62;&#160; &#160;
&#160; &#160; &#60;mx:itemRenderer&#62;
&#160; &#160; &#160; &#160; &#60;mx:Component&#62;&#160; &#160; &#160; &#160; &#160; 
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:myItemRenderer/&#62;
&#160; &#160; &#160; &#160; &#60;/mx:Component&#62;
&#160; &#160; &#60;/mx:itemRenderer&#62;
&#60;/mx:TileList&#62;



<p></p>
<p>Este itemRenderer será otro archivo MXML al que queremos asignarle una clase AS3 para poder manejarlo, para [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/' rel='bookmark' title='Permanent Link: Acceder a los itemRenderer de un componente lista en Flex'>Acceder a los itemRenderer de un componente lista en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/clase-de-actionscript-3-para-anadir-sombras-a-movieclips/' rel='bookmark' title='Permanent Link: Clase de ActionScript 3 para añadir sombras a MovieClips'>Clase de ActionScript 3 para añadir sombras a MovieClips</a></li>
<li><a href='http://www.codigoactionscript.org/clase-de-actionscript-3-para-arrays-multidimensionales/' rel='bookmark' title='Permanent Link: Clase de Actionscript 3 para arrays multidimensionales'>Clase de Actionscript 3 para arrays multidimensionales</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>En este <a href="http://www.cristalab.com/tips">Tip</a> voy a explicar un sistema para poder controlar la funcionalidad de un componente usado como itemRenderer en cualquier componente de tipo lista desde una clase de <a href="http://www.cristalab.com/tips/tags/actionscript_3">ActionScript 3</a>.</p>
<p>Supongamos que en nuestra aplicación <a href="http://www.cristalab.com/tips/tags/flex">Flex</a> tenemos un compomente TileList al que le hemos asignado otro componente como itemRenderer:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-35">
<div class="actionscript">&lt;mx:TileList id=<span style="color: #ff0000;">"myTileList"</span>&gt;&nbsp; &nbsp;<br />
&nbsp; &nbsp; &lt;mx:itemRenderer&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Component&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:myItemRenderer/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/mx:Component&gt;<br />
&nbsp; &nbsp; &lt;/mx:itemRenderer&gt;<br />
&lt;/mx:TileList&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Este itemRenderer será otro archivo <a href="http://www.cristalab.com/tips/tags/mxml">MXML</a> al que queremos asignarle una clase AS3 para poder manejarlo, para ello le añadiremos un tag <em><mx:Script></em> y definiremos la clase:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-36">
<div class="actionscript">&lt;mx:Script&gt;<br />
&nbsp; &nbsp; &lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">proyecto</span>.<span style="color: #006600;">MyItemRendererClass</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _this:MyItemRendererClass = <span style="color: #000000; font-weight: bold;">new</span> MyItemRendererClass<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;<br />
&lt;/mx:Script&gt;</div>
</div>
</div>
</div>
<p></p>
<p>El único detalle a tener en cuenta es que la clase reciba correctamente el contenido del objeto "<strong>data</strong>" del dataProvider. Eso se lo tenemos que pasar una vez el itemRenderer esté creado, de manera que en el evento <em>creationComplete </em>del componente haremos un <em>setter </em>a la clase:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-37">
<div class="actionscript">&lt;mx:Canvas xmlns:mx=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span>creationComplete=<span style="color: #ff0000;">"_this.data = data"</span>&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Con lo que la clase para controlar el itemRenderer comenzaría siendo así:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-38">
<div class="actionscript">package com.<span style="color: #006600;">proyecto</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MyItemRendererClass<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _main:<span style="color: #0066CC;">Object</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _data:<span style="color: #0066CC;">Object</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//------------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> MyItemRendererClass<span style="color: #66cc66;">&#40;</span>m:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _main = m;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>&nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> <span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#40;</span>d:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _data = d;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #808080; font-style: italic;">//------------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/* etc.. */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #808080; font-style: italic;">//------------------------------------------------------------------------</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Asignar%20una%20clase%20ActionScript%203%20a%20un%20itemRenderer%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F&amp;t=Asignar%20una%20clase%20ActionScript%203%20a%20un%20itemRenderer%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F&amp;title=Asignar%20una%20clase%20ActionScript%203%20a%20un%20itemRenderer%20en%20Flex&amp;annotation=En%20este%20%20voy%20a%20explicar%20un%20sistema%20para%20poder%20controlar%20la%20funcionalidad%20de%20un%20componente%20usado%20como%20itemRenderer%20en%20cualquier%20componente%20de%20tipo%20lista%20desde%20una%20clase%20de%20.%0D%0A%0D%0ASupongamos%20que%20en%20nuestra%20aplicaci%C3%B3n%20%20tenemos%20un%20compomente%20TileList%20al%20q" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F&amp;title=Asignar%20una%20clase%20ActionScript%203%20a%20un%20itemRenderer%20en%20Flex&amp;notes=En%20este%20%20voy%20a%20explicar%20un%20sistema%20para%20poder%20controlar%20la%20funcionalidad%20de%20un%20componente%20usado%20como%20itemRenderer%20en%20cualquier%20componente%20de%20tipo%20lista%20desde%20una%20clase%20de%20.%0D%0A%0D%0ASupongamos%20que%20en%20nuestra%20aplicaci%C3%B3n%20%20tenemos%20un%20compomente%20TileList%20al%20q" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Asignar%20una%20clase%20ActionScript%203%20a%20un%20itemRenderer%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fasignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/acceder-a-los-itemrenderer-de-un-componente-lista-en-flex/' rel='bookmark' title='Permanent Link: Acceder a los itemRenderer de un componente lista en Flex'>Acceder a los itemRenderer de un componente lista en Flex</a></li>
<li><a href='http://www.codigoactionscript.org/clase-de-actionscript-3-para-anadir-sombras-a-movieclips/' rel='bookmark' title='Permanent Link: Clase de ActionScript 3 para añadir sombras a MovieClips'>Clase de ActionScript 3 para añadir sombras a MovieClips</a></li>
<li><a href='http://www.codigoactionscript.org/clase-de-actionscript-3-para-arrays-multidimensionales/' rel='bookmark' title='Permanent Link: Clase de Actionscript 3 para arrays multidimensionales'>Clase de Actionscript 3 para arrays multidimensionales</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/asignar-una-clase-actionscript-3-a-un-itemrenderer-en-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AdobeTV: Videotutorial de creacion de componentes en Flex</title>
		<link>http://www.codigoactionscript.org/adovetv-videotutorial-de-creacion-de-componentes-en-flex/</link>
		<comments>http://www.codigoactionscript.org/adovetv-videotutorial-de-creacion-de-componentes-en-flex/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 03:24:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Aportes]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[componentes]]></category>
		<category><![CDATA[vidotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=302</guid>
		<description><![CDATA[<p>Videotutorial "Creating New Components in Flex 3" por Deepa Subramaniam</p>
<p></p>



Comparte:


	
	
	
	
	
	
	
	




<p>Related posts:Personalizar la tipografía en componentes Flex
Personalizar componentes de Flex con estilos programáticos
Modificar datos en componentes Flex con ItemEditors
</p>


Related posts:<ol><li><a href='http://www.codigoactionscript.org/personalizar-la-tipografia-en-componentes-flex/' rel='bookmark' title='Permanent Link: Personalizar la tipografía en componentes Flex'>Personalizar la tipografía en componentes Flex</a></li>
<li><a href='http://www.codigoactionscript.org/personalizar-componentes-de-flex-con-estilos-programaticos/' rel='bookmark' title='Permanent Link: Personalizar componentes de Flex con estilos programáticos'>Personalizar componentes de Flex con estilos programáticos</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Videotutorial "<em>Creating New Components in Flex 3</em>" por Deepa Subramaniam</p>
<p><embed src="http://tv.adobe.com/Embed.swf" quality="high" bgcolor="#000000" width="600" height="385" name="AdobeTVPlayer" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashVars="v=~b64~aHR0cDovL2Fkb2JlLmVkZ2Vib3NzLm5ldC9mbGFzaC9hZG9iZS9hZG9iZXR2Mi9tYXhfMjAwOF9kZXZlbG9wLzE1OTY3NDE2MTNfMjkyNzMxNDAwMV8yMDAxLWRlbm5lcnQtdHVlLTQzMHBtLWRlc2lnbi1kZXZlbG9wLmZsdj9yc3NfZmVlZGlkPTE1Mzg0JnhtbHZlcnM9Mg==&#038;w=600&#038;t=http://tv.adobe.com/#vi+f15384v1008&#038;h=385"></embed></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=AdobeTV%3A%20Videotutorial%20de%20creacion%20de%20componentes%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F&amp;t=AdobeTV%3A%20Videotutorial%20de%20creacion%20de%20componentes%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F&amp;title=AdobeTV%3A%20Videotutorial%20de%20creacion%20de%20componentes%20en%20Flex&amp;annotation=Videotutorial%20%22Creating%20New%20Components%20in%20Flex%203%22%20por%20Deepa%20Subramaniam%0D%0A%0D%0A" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F&amp;title=AdobeTV%3A%20Videotutorial%20de%20creacion%20de%20componentes%20en%20Flex&amp;notes=Videotutorial%20%22Creating%20New%20Components%20in%20Flex%203%22%20por%20Deepa%20Subramaniam%0D%0A%0D%0A" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=AdobeTV%3A%20Videotutorial%20de%20creacion%20de%20componentes%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fadovetv-videotutorial-de-creacion-de-componentes-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/personalizar-la-tipografia-en-componentes-flex/' rel='bookmark' title='Permanent Link: Personalizar la tipografía en componentes Flex'>Personalizar la tipografía en componentes Flex</a></li>
<li><a href='http://www.codigoactionscript.org/personalizar-componentes-de-flex-con-estilos-programaticos/' rel='bookmark' title='Permanent Link: Personalizar componentes de Flex con estilos programáticos'>Personalizar componentes de Flex con estilos programáticos</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adovetv-videotutorial-de-creacion-de-componentes-en-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ordenar los elementos de un ArrayCollection en Flex</title>
		<link>http://www.codigoactionscript.org/ordenar-los-elementos-de-un-arraycollection-en-flex/</link>
		<comments>http://www.codigoactionscript.org/ordenar-los-elementos-de-un-arraycollection-en-flex/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 18:24:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ArrayCollection]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=269</guid>
		<description><![CDATA[<p>En el siguiente tip mostraré como ordenar un ArrayCollection en Flex. Esto nos puede ser necesario a la hora de mostrar su contenido. Para mostrar esto utilizaré como ejemplo los resultados (hasta este momento) de las votaciones de los premios Cristalab 2008.</p>
<p>Supongamos que tenemos este ArrayCollection:</p>



public var premioPopular:ArrayCollection = new ArrayCollection&#40;&#91;
&#160; &#160; &#160; &#160; &#123;claber: "Eldervaz", votos: 6&#125;,
&#160; &#160; &#123;claber: "Freddie", votos: 13&#125;,
&#160; &#160; &#123;claber: "XKlibur", votos: 3&#125;,
&#160; &#160; &#123;claber: "TheParrot", votos: 7&#125;,
&#160; &#160; &#123;claber: "M@U", votos: 1&#125;,
&#160; &#160; &#123;claber: "Mariux", votos: 4&#125;,
&#160; &#160; &#123;claber: "JaLeRu", votos: 1&#125;,
&#160; &#160; &#123;claber: [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/como-ordenar-elementos-de-un-vector-en-actionscript-3/' rel='bookmark' title='Permanent Link: Ordenar elementos de un Vector en Actionscript 3'>Ordenar elementos de un Vector en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
<li><a href='http://www.codigoactionscript.org/como-personalizar-los-iconos-en-componentes-tree-de-flex/' rel='bookmark' title='Permanent Link: Cómo personalizar los iconos en componentes Tree de Flex'>Cómo personalizar los iconos en componentes Tree de Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>En el siguiente <a href="http://www.cristalab.com/tips/tags">tip</a> mostraré como ordenar un <strong>ArrayCollection</strong> en <a href="http://www.cristalab.com/tips/tags/flex">Flex</a>. Esto nos puede ser necesario a la hora de mostrar su contenido. Para mostrar esto utilizaré como ejemplo los resultados (hasta este momento) de las votaciones de los <a href="http://www.cristalab.com/blog/66033/vota-para-elegir-los-ganadores-a-los-premios-cristalab-2008.html">premios Cristalab 2008</a>.</p>
<p>Supongamos que tenemos este ArrayCollection:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-49">
<div class="actionscript"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> premioPopular:ArrayCollection = <span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"Eldervaz"</span>, votos: <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"Freddie"</span>, votos: <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"XKlibur"</span>, votos: <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"TheParrot"</span>, votos: <span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"M@U"</span>, votos: <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"Mariux"</span>, votos: <span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"JaLeRu"</span>, votos: <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>claber: <span style="color: #ff0000;">"Pley"</span>, votos: <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,<br />
<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
</div>
<p></p>
<p>Y asignamos este ArrayCollection a un componente PieChart para mostrar los resultados:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-50">
<div class="actionscript">&lt;mx:VBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"25%"</span> horizontalCenter=<span style="color: #ff0000;">"0"</span> verticalCenter=<span style="color: #ff0000;">"0"</span>&gt;<br />
&lt;mx:Label <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">"Claber más Popular"</span> fontWeight=<span style="color: #ff0000;">"bold"</span> fontSize=<span style="color: #ff0000;">"18"</span>/&gt;<br />
&lt;mx:HBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"100%"</span>&gt;<br />
&nbsp; &nbsp; &lt;mx:Legend id=<span style="color: #ff0000;">"legend1"</span> dataProvider=<span style="color: #ff0000;">"{pie1}"</span>/&gt;<br />
&nbsp; &nbsp; &lt;mx:PieChart id=<span style="color: #ff0000;">"pie1"</span> dataProvider=<span style="color: #ff0000;">"{premioPopular}"</span> showDataTips=<span style="color: #ff0000;">"true"</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">"150"</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">"150"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:series&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:PieSeries field=<span style="color: #ff0000;">"votos"</span> nameField=<span style="color: #ff0000;">"claber"</span>/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/mx:series&gt;<br />
&nbsp; &nbsp; &lt;/mx:PieChart&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/mx:HBox&gt;<br />
&lt;/mx:VBox&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Daría este resultado:</p>
<div align="center"><div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="" height="">  <param name="movie" value="http://www.cristalab.com/images/tips//flex/sortArrayCollection/sortPie1.swf" />  <param name="quality" value="high" /> <embed src="http://www.cristalab.com/images/tips//flex/sortArrayCollection/sortPie1.swf" width="" height="" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></div></div>
<p>Como podemos ver, los resultados aparecen en el orden en que están colocados dentro del ArrayCollection. Pero de esta manera en el <em>Legend </em>no sabemos quien es el que obtuvo más votos.</p>
<p>En este caso podríamos haber ordenado el ArrayCollection manualmente, pero para casos más complejos nos resultaría más fácil ordenarlo por código. Para ello utilizaremos la clase <strong>SortField</strong> y la clase <strong>Sort</strong>.</p>
<p>Crearemos una instancia de la clase <strong>SortField</strong>, y le pasaremos como propiedad el nombre del parámetro que queremos ordenar del ArrayCollection. También indicaremos si el parámetro a ordenar es un dato numérico o no.</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-51">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> sortField:SortField = <span style="color: #000000; font-weight: bold;">new</span> SortField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
sortField.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">"votos"</span>;<br />
sortField.<span style="color: #006600;">numeric</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</div>
</div>
</div>
<p></p>
<p>También crearemos una instancia de la clase <strong>Sort </strong>y le pasaremos referencia del objeto SortField creado. Aqui ejecutaremos el método <strong>reverse()</strong> para que la ordenación de elementos sea de mayor a menor (por defecto es de nemor a mayor).</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-52">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">sort</span>:<span style="color: #0066CC;">Sort</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Sort</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">sort</span>.<span style="color: #006600;">fields</span> = <span style="color: #66cc66;">&#91;</span>sortField<span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #0066CC;">sort</span>.<span style="color: #0066CC;">reverse</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
</div>
<p></p>
<p>Ahora pasaremos este objeto al ArrayCollection, y ejecutaremos el método refresh() que hará que el Array se ordene segun los parámetros indicados.</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-53">
<div class="actionscript">premioPopular.<span style="color: #0066CC;">sort</span> = <span style="color: #0066CC;">sort</span>;<br />
premioPopular.<span style="color: #006600;">refresh</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
</div>
<p></p>
<p>Este es es resultado:</p>
<div align="center"><div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="" height="">  <param name="movie" value="http://www.cristalab.com/images/tips//flex/sortArrayCollection/sortPie2.swf" />  <param name="quality" value="high" /> <embed src="http://www.cristalab.com/images/tips//flex/sortArrayCollection/sortPie2.swf" width="" height="" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></div></div>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Ordenar%20los%20elementos%20de%20un%20ArrayCollection%20en%20Flex%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F&amp;t=Ordenar%20los%20elementos%20de%20un%20ArrayCollection%20en%20Flex" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F&amp;title=Ordenar%20los%20elementos%20de%20un%20ArrayCollection%20en%20Flex&amp;annotation=En%20el%20siguiente%20%20mostrar%C3%A9%20como%20ordenar%20un%20%20en%20.%20Esto%20nos%20puede%20ser%20necesario%20a%20la%20hora%20de%20mostrar%20su%20contenido.%20Para%20mostrar%20esto%20utilizar%C3%A9%20como%20ejemplo%20los%20resultados%20%28hasta%20este%20momento%29%20de%20las%20votaciones%20de%20los%20.%0D%0A%0D%0ASupongamos%20que%20tenemos%20este%20A" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F&amp;title=Ordenar%20los%20elementos%20de%20un%20ArrayCollection%20en%20Flex&amp;notes=En%20el%20siguiente%20%20mostrar%C3%A9%20como%20ordenar%20un%20%20en%20.%20Esto%20nos%20puede%20ser%20necesario%20a%20la%20hora%20de%20mostrar%20su%20contenido.%20Para%20mostrar%20esto%20utilizar%C3%A9%20como%20ejemplo%20los%20resultados%20%28hasta%20este%20momento%29%20de%20las%20votaciones%20de%20los%20.%0D%0A%0D%0ASupongamos%20que%20tenemos%20este%20A" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Ordenar%20los%20elementos%20de%20un%20ArrayCollection%20en%20Flex&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fordenar-los-elementos-de-un-arraycollection-en-flex%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/como-ordenar-elementos-de-un-vector-en-actionscript-3/' rel='bookmark' title='Permanent Link: Ordenar elementos de un Vector en Actionscript 3'>Ordenar elementos de un Vector en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/modificar-datos-en-componentes-flex-con-itemeditors/' rel='bookmark' title='Permanent Link: Modificar datos en componentes Flex con ItemEditors'>Modificar datos en componentes Flex con ItemEditors</a></li>
<li><a href='http://www.codigoactionscript.org/como-personalizar-los-iconos-en-componentes-tree-de-flex/' rel='bookmark' title='Permanent Link: Cómo personalizar los iconos en componentes Tree de Flex'>Cómo personalizar los iconos en componentes Tree de Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/ordenar-los-elementos-de-un-arraycollection-en-flex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
