<?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>Tue, 24 Apr 2012 11:53:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Adobe TV: Publicar a HTML5 usando Adobe Flash Professional Toolkit para CreateJS</title>
		<link>http://www.codigoactionscript.org/adobe-tv-publicar-a-html5-usando-adobe-flash-professional-toolkit-para-createjs/</link>
		<comments>http://www.codigoactionscript.org/adobe-tv-publicar-a-html5-usando-adobe-flash-professional-toolkit-para-createjs/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 11:53:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Videotutorial]]></category>
		<category><![CDATA[adobetv]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=742</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>Más información sobre el Adobe Flash Professional Toolkit para CreateJS, incluidos los rasgos básicos, flujos de trabajo previstos, y la filosofía detrás de esta tecnología</p>
<p></p>
<p>http://adobe.ly/I2Ur7U</p>
<p>Related posts:
Pack de HTML5 para Adobe Dreamweaver CS5
Recursos para Flash Catalyst CS5
AdobeTV: Desarrollo AIR para Android con Flash CS5
</p>
Related posts:<ol>
<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>
<li><a href='http://www.codigoactionscript.org/recursos-para-flash-catalyst-cs5/' rel='bookmark' title='Recursos para Flash Catalyst CS5'>Recursos para Flash Catalyst CS5</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>Más información sobre el Adobe Flash Professional Toolkit para CreateJS, incluidos los rasgos básicos, flujos de trabajo previstos, y la filosofía detrás de esta tecnología</p>
<p><iframe title="AdobeTV Video Player" src="http://tv.adobe.com/embed/897/12835/" frameborder="0" scrolling="no" width="640" height="367"></iframe></p>
<p><a href="http://adobe.ly/I2Ur7U">http://adobe.ly/I2Ur7U</a></p>
<p>Related posts:<ol>
<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>
<li><a href='http://www.codigoactionscript.org/recursos-para-flash-catalyst-cs5/' rel='bookmark' title='Recursos para Flash Catalyst CS5'>Recursos para Flash Catalyst CS5</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/adobe-tv-publicar-a-html5-usando-adobe-flash-professional-toolkit-para-createjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Novedades CS6 en Adobe Hispano, con AdobeXpert y Video2brain</title>
		<link>http://www.codigoactionscript.org/novedades-cs6-en-adobe-hispano-con-adobexpert-y-video2brain/</link>
		<comments>http://www.codigoactionscript.org/novedades-cs6-en-adobe-hispano-con-adobexpert-y-video2brain/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 08:21:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CS6]]></category>
		<category><![CDATA[Noticias]]></category>
		<category><![CDATA[usergroup]]></category>
		<category><![CDATA[conferencia]]></category>
		<category><![CDATA[onlice]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=739</guid>
		<description><![CDATA[<img width="310" height="80" src="http://www.codigoactionscript.org/wp-content/uploads/2012/04/video2brain.jpg" class="attachment-310x85 wp-post-image" alt="video2brain" title="video2brain" /><p>Video2brain une esfuerzos con AdobeXpert y juntos llevan a cabo una emisión especial de Adobe Hispano, un evento online con más de 8 horas de duración donde una larga lista de expertos de la Comunidad Hispana de Adobe mostrará las [...]
Related posts:<ol>
<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/conferencias-online-adobe-hispano/' rel='bookmark' title='Conferencias online Adobe Hispano'>Conferencias online Adobe Hispano</a></li>
<li><a href='http://www.codigoactionscript.org/eseminar-sobre-cs5-en-video2brain/' rel='bookmark' title='eSeminar sobre CS5 en video2brain'>eSeminar sobre CS5 en video2brain</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a title="video2brain" href="http://www.video2brain.com/es/" target="_blank">Video2brain</a> une esfuerzos con <a title="adobexpert" href="http://www.adobexpert.com/" target="_blank">AdobeXpert</a> y juntos llevan a cabo una emisión especial de <a title="adobe hispano" href="http://www.adobehispano.com/" target="_blank">Adobe Hispano</a>, un evento online con más de 8 horas de duración donde una larga lista de expertos de la Comunidad Hispana de Adobe mostrará las distintas novedades en sus aplicaciones preferidas a través de workshops y ejemplos específicos para que no quede duda alguna de todo lo que se puede hacer con la nueva versión de Creative Suite.</p>
<p>Un evento online, un evento totalmente gratuito para toda la comunidad, un evento totalmente en vivo, un evento con todas las novedades de CS6, un evento llevado a la comunidad por AdobeXpert y video2brain.</p>
<p>Toda la información del evento la puedes encontrar en su sitio online:<br />
<a href="http://www.adobehispano.com/index.htm4" target="_blank">http://www.adobehispano.com/<wbr>index.htm</wbr></a></p>
<p>Conferencistas, temas, horarios, etc. Debes estar pendiente por cambios de último momento y recordar que se presentan las horas de Colombia y España, haz el cálculo para tu país.</p>
<p>El evento es totalmente gratuito pero es necesario que te registres, y eso lo puedes hacer aquí:</p>
<p><a href="http://www.adobehispano.com/asistir.htm" target="_blank">http://www.adobehispano.com/<wbr>asistir.htm</wbr></a></p>
<p><span style="color: #999999;"><em>(*texto extraído de la newsletter de video2brain)</em></span></p>
<p>Related posts:<ol>
<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/conferencias-online-adobe-hispano/' rel='bookmark' title='Conferencias online Adobe Hispano'>Conferencias online Adobe Hispano</a></li>
<li><a href='http://www.codigoactionscript.org/eseminar-sobre-cs5-en-video2brain/' rel='bookmark' title='eSeminar sobre CS5 en video2brain'>eSeminar sobre CS5 en video2brain</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/novedades-cs6-en-adobe-hispano-con-adobexpert-y-video2brain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe ® Edge preview</title>
		<link>http://www.codigoactionscript.org/adobe-edge-preview/</link>
		<comments>http://www.codigoactionscript.org/adobe-edge-preview/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 15:55:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Aplicaciones]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Videotutorial]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=733</guid>
		<description><![CDATA[<p>Adobe Edge es un programa para hacer animaciones HTML5 y que funciona de forma muy similar a Flash. Tenemos paneles de herramientas, una línea de tiempo, desarrollo por Stages y paneles de interactividad donde marcar el tiempo de evento que hará iniciar la animación HTML5.</p>
<p>En este video vemos las diferentes opciones que tenemos en Adobe Edge y la facilidad con la que el programa genera dichas animaciones.</p>
<p></p>
<p>Related posts:
Pack de HTML5 para Adobe Dreamweaver CS5
Conferencias online Adobe Hispano
Pausar un movieclip
</p>
Related posts:<ol>
<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>
<li><a href='http://www.codigoactionscript.org/conferencias-online-adobe-hispano/' rel='bookmark' title='Conferencias online Adobe Hispano'>Conferencias online Adobe Hispano</a></li>
<li><a href='http://www.codigoactionscript.org/pausar-un-movieclip/' rel='bookmark' title='Pausar un movieclip'>Pausar un movieclip</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Adobe Edge es un programa para hacer animaciones HTML5 y que funciona de forma muy similar a Flash. Tenemos paneles de herramientas, una línea de tiempo, desarrollo por Stages y paneles de interactividad donde marcar el tiempo de evento que hará iniciar la animación HTML5.</p>
<p>En este video vemos las diferentes opciones que tenemos en Adobe Edge y la facilidad con la que el programa genera dichas animaciones.</p>
<p><iframe title="AdobeTV Video Player" src="http://tv.adobe.com/embed/64/8185/" frameborder="0" scrolling="no" width="515" height="296"></iframe></p>
<p>Related posts:<ol>
<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>
<li><a href='http://www.codigoactionscript.org/conferencias-online-adobe-hispano/' rel='bookmark' title='Conferencias online Adobe Hispano'>Conferencias online Adobe Hispano</a></li>
<li><a href='http://www.codigoactionscript.org/pausar-un-movieclip/' rel='bookmark' title='Pausar un movieclip'>Pausar un movieclip</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/adobe-edge-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>2</slash:comments>
		</item>
	</channel>
</rss>

