<?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</title>
	<atom:link href="http://www.codigoactionscript.org/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>Fri, 30 Sep 2011 11:25:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>AdobeTV: Determining speed data from GPS</title>
		<link>http://www.codigoactionscript.org/adobetv-determining-speed-data-from-gps/</link>
		<comments>http://www.codigoactionscript.org/adobetv-determining-speed-data-from-gps/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 11:25:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Videotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=725</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2011/06/adobetv.jpg" class="attachment-310x85 wp-post-image" alt="adobetv" title="adobetv" /><p>Utilizando ActionScript se puede obtener datos GPS desde un teléfono móvil o tableta. Estos datos son la latitud, la longitud, la dirección del movimiento, la precisión, la altitud, así como la velocidad. En este vídeo se muestra como obtener la propiedad de la velocidad para crear una aplicación sencilla y eficaz.</p>
<p></p>
<p>Related posts:
AdobeTV: [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Utilizando ActionScript se puede obtener datos GPS desde un teléfono móvil o tableta. Estos datos son la latitud, la longitud, la dirección del movimiento, la precisión, la altitud, así como la velocidad. En este vídeo se muestra como obtener la propiedad de la velocidad para crear una aplicación sencilla y eficaz.</p>
<p><iframe title="AdobeTV Video Player" width="480" height="296" src="http://tv.adobe.com/embed/519/10982/" frameborder="0" allowfullscreen scrolling="no"></iframe></p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobetv-determining-speed-data-from-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR 3 Release Candidate disponible</title>
		<link>http://www.codigoactionscript.org/adobe-air-3-release-candidate-disponible/</link>
		<comments>http://www.codigoactionscript.org/adobe-air-3-release-candidate-disponible/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 10:40:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Noticias]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=722</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2009/12/thumb2.jpg" class="attachment-310x85 wp-post-image" alt="thumb2" title="thumb2" /><p>Adobe AIR 3 Release Candidate ya está disponible para su descarga. Esta actualización incluye los SDK de AIR para el desarrollo de aplicaciones móviles y de escritorio.</p>
<p>Sus principales caracteristicas son:</p>

Stage 3D Accelerated Graphics Rendering (AIR desktop and TV)
Stage Video Hardware [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-1-5-2/' rel='bookmark' title='Adobe AIR 1.5.2'>Adobe AIR 1.5.2</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Adobe AIR 3 Release Candidate ya está disponible para su <a href="http://labs.adobe.com/technologies/flashplatformruntimes/air3/">descarga</a>. Esta actualización incluye los SDK de AIR para el desarrollo de aplicaciones móviles y de escritorio.</p>
<p>Sus principales caracteristicas son:</p>
<ul>
<li>Stage 3D Accelerated Graphics Rendering (AIR desktop and TV)</li>
<li>Stage Video Hardware Acceleration (AIR for mobile)</li>
<li>Native Extensions for AIR</li>
<li>Captive Runtime Support (AIR for desktop and Android)</li>
<li>iOS Background Audio Playback Support</li>
<li>Android Licensing Service Support</li>
<li>Android Front-facing Camera Support</li>
<li>Encrypted Local Storage for Mobile</li>
<li>H.264/AVC Software Encoding for Cameras (desktop)</li>
</ul>
<p>Aquí podemos ver la información completa y la descarga:</p>
<p>http://labs.adobe.com/technologies/flashplatformruntimes/air3/</p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-1-5-2/' rel='bookmark' title='Adobe AIR 1.5.2'>Adobe AIR 1.5.2</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobe-air-3-release-candidate-disponible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AdobeTV: Screen density</title>
		<link>http://www.codigoactionscript.org/adobetv-screen-density/</link>
		<comments>http://www.codigoactionscript.org/adobetv-screen-density/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 14:54:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Videotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=719</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2010/05/adobetv.jpg" class="attachment-310x85 wp-post-image" alt="adobetv" title="adobetv" /><p>En los dispositivos móviles el DPI (puntos por pulgada) es muy variable. Esto tiene un efecto directo sobre el tamaño de su contenido. En este vídeo vemos como ajustar el tamaño de los gráficos en función del dispositivo.</p>
<p></p>
<p>Related posts:
AdobeTV: Determining [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-determining-speed-data-from-gps/' rel='bookmark' title='AdobeTV: Determining speed data from GPS'>AdobeTV: Determining speed data from GPS</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>En los dispositivos móviles el DPI (puntos por pulgada) es muy variable. Esto tiene un efecto directo sobre el tamaño de su contenido. En este vídeo vemos como ajustar el tamaño de los gráficos en función del dispositivo.</p>
<p><iframe title="AdobeTV Video Player" width="480" height="296" src="http://tv.adobe.com/embed/519/10654/" frameborder="0" allowfullscreen scrolling="no"></iframe></p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-determining-speed-data-from-gps/' rel='bookmark' title='AdobeTV: Determining speed data from GPS'>AdobeTV: Determining speed data from GPS</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobetv-screen-density/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AdobeTV: Air for Android Development</title>
		<link>http://www.codigoactionscript.org/adobetv-air-for-android-development/</link>
		<comments>http://www.codigoactionscript.org/adobetv-air-for-android-development/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 17:22:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Videotutorial]]></category>
		<category><![CDATA[adobetv]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=715</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2011/06/adobetv.jpg" class="attachment-310x85 wp-post-image" alt="adobetv" title="adobetv" /><p>Duane Nickull ilustra las diferencias en el desarrollo de aplicaciones móviles con dos diferentes SDK de Flex (4.1 y 4.5). Un enlace al código fuente de ambos proyectos está disponible en el video.</p>
<p></p>
<p>Related posts:
AdobeTV: Desarrollo AIR para Android con Flash [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Duane Nickull ilustra las diferencias en el desarrollo de aplicaciones móviles con dos diferentes SDK de Flex (4.1 y 4.5). Un enlace al código fuente de ambos proyectos está disponible en el video.</p>
<p><iframe title="AdobeTV Video Player" width="480" height="296" src="http://tv.adobe.com/embed/63/8786/" frameborder="0" allowfullscreen scrolling="no"></iframe></p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobetv-air-for-android-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7</title>
		<link>http://www.codigoactionscript.org/aplicaciones-ios-4-veces-mas-rapidas-con-adobe-air-2-7/</link>
		<comments>http://www.codigoactionscript.org/aplicaciones-ios-4-veces-mas-rapidas-con-adobe-air-2-7/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 22:10:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Noticias]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=712</guid>
		<description><![CDATA[<p>Adobe acaba de anunciar una actualización del SDK de AIR, la versión 2.7, que incluye nuevas características para aplicaciones de escritorio y móviles Android, BlackBerry e IOS. Entre sus principales caracteristicas está el mejor rendimiento en las aplicaciones AIR para iOS que las hace hasta 4 veces más rápido en el modo de la CPU.</p>
<p>En el blog de Adobe podemos leer sobre las nuevas mejoras:
http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html</p>
<p></p>
<p>Descargar la última versión de SDK.</p>
<p>Related posts:
Adobe AIR 2.6
Adobe AIR 2.6 para Android ya disponible
Beta de Adobe AIR 2.0 disponible en Labs
</p>
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6/' rel='bookmark' title='Adobe AIR 2.6'>Adobe AIR 2.6</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Adobe acaba de anunciar una actualización del SDK de AIR, la versión 2.7, que incluye nuevas características para aplicaciones de escritorio y móviles Android, BlackBerry e IOS. Entre sus principales caracteristicas está el mejor rendimiento en las aplicaciones AIR para iOS que las hace hasta 4 veces más rápido en el modo de la CPU.</p>
<p>En el blog de Adobe podemos leer sobre las nuevas mejoras:<br />
<a href="http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html">http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html</a></p>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/1R36AosqhlA" frameborder="0" allowfullscreen></iframe></p>
<p><a href="http://www.adobe.com/go/getairsdk">Descargar la última versión de SDK</a>.</p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6/' rel='bookmark' title='Adobe AIR 2.6'>Adobe AIR 2.6</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/aplicaciones-ios-4-veces-mas-rapidas-con-adobe-air-2-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cargar imágenes en aplicaciones iOS con Flash CS5.5</title>
		<link>http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/</link>
		<comments>http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 22:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=705</guid>
		<description><![CDATA[<p>Cuando creamos una aplicación para Iphone desde Flash el tamaño de documento que utilizamos es 320x480 que es la resolución disponible en un Iphone 3. </p>
<p>En el caso del Iphone 4 tenemos una resolución de 640x960, osea que nuestra aplicación se escalará para adaptarse a esta mayor resolución. Si estamos utilizando imágenes bitmap en nuestra aplicación veremos que tenemos una perdida de calidad al estar escalándose al doble de tamaño.</p>
<p>Si hemos utilizado Xcode sabremos que por cada imagen tendremos su equivalente con el mismo nombre acabo en "@X2" y doble [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/' rel='bookmark' title='Detectar la conexión 3G o Wifi en aplicaciones AIR para Android'>Detectar la conexión 3G o Wifi en aplicaciones AIR para Android</a></li>
<li><a href='http://www.codigoactionscript.org/clase-para-cargar-contenido-externo-en-actionscript-3/' rel='bookmark' title='Clase para cargar contenido externo en Actionscript 3'>Clase para cargar contenido externo en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/cargar-xml-en-un-componente-list-en-actionscript-3/' rel='bookmark' title='Cargar XML en un componente List en Actionscript 3'>Cargar XML en un componente List en Actionscript 3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Cuando creamos una aplicación para <a href="http://www.cristalab.com/tags/iphone">Iphone</a> desde <a href="http://www.cristalab.com/tags/flash">Flash</a> el tamaño de documento que utilizamos es <strong>320x480</strong> que es la resolución disponible en un Iphone 3. </p>
<p>En el caso del Iphone 4 tenemos una resolución de <strong>640x960</strong>, osea que nuestra aplicación se escalará para adaptarse a esta mayor resolución. Si estamos utilizando imágenes bitmap en nuestra aplicación veremos que tenemos una perdida de calidad al estar escalándose al doble de tamaño.</p>
<p>Si hemos utilizado <a href="http://www.cristalab.com/tags/xcode">Xcode</a> sabremos que por cada imagen tendremos su equivalente con el mismo nombre acabo en "<strong>@X2</strong>" y doble de resolución, que automaticamente se sustituirá en al visualizarse la aplicación en pantalla retina. </p>
<p>Creando nuestra aplicación en <a href="http://www.cristalab.com/tags/air">AIR</a> para <a href="http://www.cristalab.com/tags/ios">IOS</a> podemos conseguir esta misma característica creando una clase que nos muestre la imagen normal o su equivalente al doble de resolución dependiendo de la resolución del dispositivo.</p>
<p>Con una simple comprobación de la profundidad de pixel del dispositivo podemos saber si estamos en una pantalla retina, en ese caso cambiaremos el nombre de la imagen a su equivalente con el doble de resolución y reduciremos la escala al clip  a la mitad para que se visualice al mismo tamaño:</p>
<div id="codigo">
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showPlainTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenDPI</span>==<span style="color: #cc66cc;color:#800000;">326</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">//iphone 4</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $__urlAsset = $__urlAsset.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"."</span>,<span style="color: #ff0000;">"@2x."</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleX</span> = .<span style="color: #cc66cc;color:#800000;">5</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleY</span> = .<span style="color: #cc66cc;color:#800000;">5</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
</div>
<p></p>
<p>Este código utilizado en una clase similar a la que mostré en <a href="http://www.cristalab.com/tutoriales/clase-para-cargar-un-swf-externo-en-flash-c26811l">=http://www.cristalab.com/tutoriales/clase-para-cargar-un-swf-externo-en-flash-c26811l</a>un tip hace mucho tiempo[/url] quedaría asi:</p>
<div id="codigo">
<div class="igBar"><span id="lactionscript-5"><a href="#" onclick="javascript:showPlainTxt('actionscript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-5">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package com.<span style="color: #006600;">cristalab</span>.<span style="color: #006600;">display</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Bitmap</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Loader</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">Capabilities</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #006600;">LoaderContext</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> BitmapIOS <span style="color: #0066CC;">extends</span> Sprite</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const CARGADO:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"cargado"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> $__cargado:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">false</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> $__context:LoaderContext = <span style="color: #000000; font-weight: bold;">new</span> LoaderContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> $__loader:Loader = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> $__urlAsset:<span style="color: #0066CC;">String</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> BitmapIOS<span style="color: #66cc66;">&#40;</span>asset:<span style="color: #0066CC;">String</span> = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = asset;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>$__urlAsset != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.__load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> asset<span style="color: #66cc66;">&#40;</span>a:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>$__urlAsset != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; borra<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = a;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.__load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> borra<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">removeChild</span><span style="color: #66cc66;">&#40;</span>$__loader<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__loader.<span style="color: #006600;">unload</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = <span style="color: #000000; font-weight: bold;">null</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">get</span> cargado<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> $__cargado;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> __load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>$__urlAsset != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenDPI</span>==<span style="color: #cc66cc;color:#800000;">326</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">//iphone 4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = $__urlAsset.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"."</span>,<span style="color: #ff0000;">"@2x."</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleX</span> = .<span style="color: #cc66cc;color:#800000;">5</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleY</span> = .<span style="color: #cc66cc;color:#800000;">5</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>$__urlAsset<span style="color: #66cc66;">&#41;</span>, $__context<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>, __onLoadComplete, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>$__loader<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> __onLoadComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>, __onLoadComplete<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bitmap<span style="color: #66cc66;">&#40;</span>$__loader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">smoothing</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__cargado = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dispatchEvent<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Event<span style="color: #66cc66;">&#40;</span>Contenedor.<span style="color: #006600;">CARGADO</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
</div>
<p></p>
<p>Esta clase la asignaríamos a un MovieClip vacío en nuestra librería. Para cargar las imágenes lo situaremos en la posición deseada y utilizaremos un código similar a este:</p>
<div id="codigo">
<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-6">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">img</span>.<span style="color: #006600;">asset</span>&nbsp; = <span style="color: #ff0000;">"flash.png"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
</div>
<p></p>
<p>Según sea la pantalla retina o no, nos cargará el fichero "flash.png" o "flash@2x.png".</p>
<p>Hay que recordar que hemos de incluir ambos archivos dentro de la carpet de nuestra aplicación para poder acceder a ellos.</p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/' rel='bookmark' title='Detectar la conexión 3G o Wifi en aplicaciones AIR para Android'>Detectar la conexión 3G o Wifi en aplicaciones AIR para Android</a></li>
<li><a href='http://www.codigoactionscript.org/clase-para-cargar-contenido-externo-en-actionscript-3/' rel='bookmark' title='Clase para cargar contenido externo en Actionscript 3'>Clase para cargar contenido externo en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/cargar-xml-en-un-componente-list-en-actionscript-3/' rel='bookmark' title='Cargar XML en un componente List en Actionscript 3'>Cargar XML en un componente List en Actionscript 3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detectar la conexión 3G o Wifi en aplicaciones AIR para Android</title>
		<link>http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/</link>
		<comments>http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 15:54:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Class]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=703</guid>
		<description><![CDATA[<p>Es probable que en una aplicación para teléfono móvil nos interese saber si estamos conectando a la red a través de la conexión 3G o a través de WIFI, para ejecutar diferentes acciones, permitir descargas de contenido etc.. O simplemente para saber si disponemos de conexión a internet o no.</p>
<p>Con la clase NetworkInfo de =http://www.cristalab.com/tags/airAIR 2[/url] nos permite acceder a todos los accesos a la red que tenemos disponibles en el dispositivo. Cada uno de ellos estará incluido en un objeto NetworkInterface con la propiedad active en valor true o [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/' rel='bookmark' title='Cargar imágenes en aplicaciones iOS con Flash CS5.5'>Cargar imágenes en aplicaciones iOS con Flash CS5.5</a></li>
<li><a href='http://www.codigoactionscript.org/detectar-la-conexion-a-internet-desde-una-aplicacion-air/' rel='bookmark' title='Detectar la conexión a internet desde una aplicación AIR'>Detectar la conexión a internet desde una aplicación AIR</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Es probable que en una aplicación para teléfono móvil nos interese saber si estamos conectando a la red a través de la conexión 3G o a través de WIFI, para ejecutar diferentes acciones, permitir descargas de contenido etc.. O simplemente para saber si disponemos de conexión a internet o no.</p>
<p>Con la clase <strong>NetworkInfo</strong> de <a href="http://www.cristalab.com/tags/air">=http://www.cristalab.com/tags/air</a>AIR 2[/url] nos permite acceder a todos los accesos a la red que tenemos disponibles en el dispositivo. Cada uno de ellos estará incluido en un objeto <strong>NetworkInterface</strong> con la propiedad <strong>active</strong> en valor <em>true</em> o <strong>false</strong>  según sea el acceso en uso.</p>
<p>La siguiente clase que muestro es un ejemplo de uso: </p>
<p>Supongamos que tenemos un MovieClip con tres fotogramas. En el primero tendremos un icono para el estado "sin conexión", en el segundo un icono para 3G, y el tercero un icono para Wifi.</p>
<p>Ahora nos interesará que el MovieClip nos muestre el fotograma que indica que tipo de conexión estamos utilizando en nuestro dispositivo móvil.</p>
<p>Esta sería la clase para asignar al MovieClip:</p>
<div id="codigo">
<div class="igBar"><span id="lactionscript-8"><a href="#" onclick="javascript:showPlainTxt('actionscript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-8">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package com.<span style="color: #006600;">cristalab</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">mobile</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #0066CC;">MovieClip</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">NetworkInfo</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">NetworkInterface</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//------------------------------------------------------</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> NetworkInterfaceUI <span style="color: #0066CC;">extends</span> <span style="color: #0066CC;">MovieClip</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> ni:NetworkInfo = NetworkInfo.<span style="color: #006600;">networkInfo</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> active:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"none"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//------------------------------------------------------</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> NetworkInterfaceUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ni.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">NETWORK_CHANGE</span>,checkNetworkInterface<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkNetworkInterface<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> checkNetworkInterface<span style="color: #66cc66;">&#40;</span>event:Event = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> interfaceVector:Vector.&lt;NetworkInterface&gt; = ni.<span style="color: #006600;">findInterfaces</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> each <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> item:NetworkInterface <span style="color: #b1b100;">in</span> interfaceVector<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active = <span style="color: #66cc66;">&#40;</span>item.<span style="color: #006600;">active</span> == <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span> ? item.<span style="color: #0066CC;">name</span> : active;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">switch</span> <span style="color: #66cc66;">&#40;</span>active<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">"mobile"</span> :</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">"WIFI"</span> :</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">default</span> :</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
</div>
<p></p>
<p>Como podemos ver estamos guardando todas las NetworkInterfaces disponibles en un vector y realizamos una comprobación de cual es la que está activa.</p>
<p>Tambien detectamos los cambios en la red para actualizar nuestro icono.</p>
<p>Listo!</p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/' rel='bookmark' title='Cargar imágenes en aplicaciones iOS con Flash CS5.5'>Cargar imágenes en aplicaciones iOS con Flash CS5.5</a></li>
<li><a href='http://www.codigoactionscript.org/detectar-la-conexion-a-internet-desde-una-aplicacion-air/' rel='bookmark' title='Detectar la conexión a internet desde una aplicación AIR'>Detectar la conexión a internet desde una aplicación AIR</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AdobeTV: Control del escritorio con dispositivos móviles</title>
		<link>http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/</link>
		<comments>http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 14:01:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Videotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=700</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2011/06/adobetv.jpg" class="attachment-310x85 wp-post-image" alt="adobetv" title="adobetv" /><p>Platform Evangelist Tomas Krcha demuestra la capacidad de controlar una aplicación de escritorio a través de dispositivos móviles con Flash Builder.</p>
<p></p>
<p>Related posts:
AdobeTV: Screen density
AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder
Beta de Adobe [...]
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</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='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/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Platform Evangelist Tomas Krcha demuestra la capacidad de controlar una aplicación de escritorio a través de dispositivos móviles con Flash Builder.</p>
<p><object width="425" height="256"><param name="movie" value="http://images.tv.adobe.com/swf/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="FlashVars" value="fileID=10038&amp;context=64&amp;embeded=true&amp;environment=production"></param><embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=10038&amp;context=64&amp;embeded=true&amp;environment=production" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="256"></embed></object></p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-screen-density/' rel='bookmark' title='AdobeTV: Screen density'>AdobeTV: Screen density</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='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/beta-de-adobe-air-2-0-disponible-en-labs/' rel='bookmark' title='Beta de Adobe AIR 2.0 disponible en Labs'>Beta de Adobe AIR 2.0 disponible en Labs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desarrollo para iOS con AIR 2.6</title>
		<link>http://www.codigoactionscript.org/desarrollo-para-ios-con-air-2-6/</link>
		<comments>http://www.codigoactionscript.org/desarrollo-para-ios-con-air-2-6/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 23:32:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Videotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=693</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2010/05/adobetv.jpg" class="attachment-310x85 wp-post-image" alt="adobetv" title="adobetv" /><p>En este video, Ryan Stewart presenta nuevas funciones de AIR 2.6 para desarrollo en iOS</p>
<p></p>
<p>Related posts:
AdobeTV: Desarrollo AIR para Android con Flash CS5
AdobeTV: Air for Android Development
Pack de HTML5 para Adobe Dreamweaver CS5
</p>
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/pack-de-html5-para-adobe-dreamweaver-cs5/' rel='bookmark' title='Pack de HTML5 para Adobe Dreamweaver CS5'>Pack de HTML5 para Adobe Dreamweaver CS5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>En este video, Ryan Stewart presenta nuevas funciones de AIR 2.6 para desarrollo en iOS</p>
<p><object width="425" height="256"><param name="movie" value="http://images.tv.adobe.com/swf/player.swf" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=9360&amp;context=64&amp;embeded=true&amp;environment=production" /><embed type="application/x-shockwave-flash" width="425" height="256" src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=9360&amp;context=64&amp;embeded=true&amp;environment=production" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='AdobeTV: Desarrollo AIR para Android con Flash CS5'>AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-air-for-android-development/' rel='bookmark' title='AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a></li>
<li><a href='http://www.codigoactionscript.org/pack-de-html5-para-adobe-dreamweaver-cs5/' rel='bookmark' title='Pack de HTML5 para Adobe Dreamweaver CS5'>Pack de HTML5 para Adobe Dreamweaver CS5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/desarrollo-para-ios-con-air-2-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR 2.6</title>
		<link>http://www.codigoactionscript.org/adobe-air-2-6/</link>
		<comments>http://www.codigoactionscript.org/adobe-air-2-6/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 23:14:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Noticias]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=689</guid>
		<description><![CDATA[<p></p>
<p>Ya está disponible Adobe AIR 2.6, versión que trae características interesantes. En este post en inglés podemos leer sobre ellas:</p>

http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html

<p>Aquí podemos descargar el runtime:</p>

http://get.adobe.com/es/air/

<p>Y el SDK:</p>

http://www.adobe.com/products/air/sdk/

<p>Related posts:
Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7
Curso de Adobe AIR, online y gratuito, en Video2brain
Adobe AIR Cheatsheets
</p>
Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/aplicaciones-ios-4-veces-mas-rapidas-con-adobe-air-2-7/' rel='bookmark' title='Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7'>Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7</a></li>
<li><a href='http://www.codigoactionscript.org/curso-de-adobe-air-online-y-gratuito-en-video2brain/' rel='bookmark' title='Curso de Adobe AIR, online y gratuito, en Video2brain'>Curso de Adobe AIR, online y gratuito, en Video2brain</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-cheatsheets/' rel='bookmark' title='Adobe AIR Cheatsheets'>Adobe AIR Cheatsheets</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://wwwimages.adobe.com/www.adobe.com/images/shared/product_mnemonics/165x165/air_165x165.jpg" alt="" width="165" height="165" /></p>
<p>Ya está disponible Adobe AIR 2.6, versión que trae características interesantes. En este post en inglés podemos leer sobre ellas:</p>
<ul>
<li><a href="http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html">http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html</a></li>
</ul>
<p>Aquí podemos descargar el runtime:</p>
<ul>
<li><a href="http://get.adobe.com/es/air/?promoid=BUIGQ">http://get.adobe.com/es/air/</a></li>
</ul>
<p>Y el SDK:</p>
<ul>
<li><a href="http://www.adobe.com/products/air/sdk/">http://www.adobe.com/products/air/sdk/</a></li>
</ul>
<p>Related posts:<ol>
<li><a href='http://www.codigoactionscript.org/aplicaciones-ios-4-veces-mas-rapidas-con-adobe-air-2-7/' rel='bookmark' title='Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7'>Aplicaciones iOS 4 veces más rápidas con Adobe AIR 2.7</a></li>
<li><a href='http://www.codigoactionscript.org/curso-de-adobe-air-online-y-gratuito-en-video2brain/' rel='bookmark' title='Curso de Adobe AIR, online y gratuito, en Video2brain'>Curso de Adobe AIR, online y gratuito, en Video2brain</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-cheatsheets/' rel='bookmark' title='Adobe AIR Cheatsheets'>Adobe AIR Cheatsheets</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobe-air-2-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

