<?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>Adobe Flash &#187; AS3</title>
	<atom:link href="http://www.adobeflash.es/category/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adobeflash.es</link>
	<description>Adobe Flash :: Agregador de Blogs sobre Adobe Flash y Actionscript en castellano</description>
	<lastBuildDate>Thu, 01 Sep 2011 10:34:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>AS3 &#8211; Tirachinas</title>
		<link>http://www.yporqueno.es/blog/as3-tirachinas</link>
		<comments>http://www.yporqueno.es/blog/as3-tirachinas#comments</comments>
		<pubDate>Fri, 15 Jul 2011 11:47:34 +0000</pubDate>
		<dc:creator>Iván Gajate</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[estirar]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[goma]]></category>
		<category><![CDATA[tirachinas]]></category>

		<guid isPermaLink="false">http://www.yporqueno.es/blog/?p=1514</guid>
		<description><![CDATA[Viendo este gracioso juego para el iPad hecho en AIR 2.7

me ha dado por jugar un rato y probar a hacer el movimiento del tirachinas, lo dejo aquí por si a alguien le sirve para algo  

Descargar Tirachinas



Related posts:<ol><li><a href='http://www.yporqueno.es/blog/as3-compartir-en-twitter' rel='bookmark' title='Permanent Link: AS3 &#8211; Compartir en Twitter'>AS3 &#8211; Compartir en Twitter</a> <small>Ya vimos como se compartía un enlace en Facebook, y...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-fullscreen' rel='bookmark' title='Permanent Link: AS3 &#8211; FullScreen'>AS3 &#8211; FullScreen</a> <small>Poner una web a fullscreen es bastante fácil, pero hay...</small></li>
<li><a href='http://tutorialesadobe.com/flash/uso-componente-progressbar-carga-externa-flash-as3/' rel='bookmark' title='Permanent Link: Uso del componente Progressbar en una carga externa en Flash con AS3'>Uso del componente Progressbar en una carga externa en Flash con AS3</a> <small>En este video-tutorial de BatataStudio mostramos cómo usar el componente...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a> en el blog <a href="http://www.yporqueno.es/blog" target="_blank">http://www.yporqueno.es/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://www.yporqueno.es/blog/as3-tirachinas" target="_blank">http://www.yporqueno.es/blog/as3-tirachinas</a></p>
<script type="text/javascript">
window.location = "http://www.yporqueno.es/blog/as3-tirachinas"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Viendo este gracioso juego para el iPad hecho en AIR 2.7</p>
<p><a href="http://www.leebrimelow.com/?p=2897" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.leebrimelow.com');" target="_blank"><img class="aligncenter size-full wp-image-1515" title="tweethunt" src="http://www.yporqueno.es/blog/wp-content/uploads/2011/07/tweethunt.jpg" alt="" width="500" height="282" /></a></p>
<p>me ha dado por jugar un rato y probar a hacer el movimiento del tirachinas, lo dejo aquí por si a alguien le sirve para algo <img src='http://www.yporqueno.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.yporqueno.es/blog/wp-content/uploads/2011/07/tirachinas.htm" target="_blank"><img class="aligncenter size-full wp-image-1516" title="tirachinas" src="http://www.yporqueno.es/blog/wp-content/uploads/2011/07/tirachinas.jpg" alt="" width="379" height="268" /></a></p>
<p><a class="descarga" href="http://www.yporqueno.es/blog/wp-content/uploads/2011/07/tirachinas.zip" onclick="javascript:pageTracker._trackPageview('/downloads/blog/wp-content/uploads/2011/07/tirachinas.zip');" target="_blank">Descargar Tirachinas</a></p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://www.yporqueno.es/blog/as3-tirachinas" target="_blank">http://www.yporqueno.es/blog/as3-tirachinas</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.yporqueno.es/blog/as3-tirachinas/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Singleton</title>
		<link>http://www.yporqueno.es/blog/as3-singleton</link>
		<comments>http://www.yporqueno.es/blog/as3-singleton#comments</comments>
		<pubDate>Mon, 06 Jun 2011 14:41:53 +0000</pubDate>
		<dc:creator>Iván Gajate</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[modelo]]></category>
		<category><![CDATA[patrón de diseño]]></category>
		<category><![CDATA[Patrones de Diseño]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://www.yporqueno.es/blog/?p=1495</guid>
		<description><![CDATA[Uno de los patrones de diseño que mas útiles en mi opinión es el Singleton. Si queremos almacenar datos relevantes para nuestro proyecto y que sean accesibles fácilmente desde cualquier sitio es la mejor opción. O para la típica cartela de avisos que solo puede estar abierta una vez y que tiene que llamarse desde [...]


Related posts:<ol><li><a href='http://www.yporqueno.es/blog/as3-compartir-en-twitter' rel='bookmark' title='Permanent Link: AS3 &#8211; Compartir en Twitter'>AS3 &#8211; Compartir en Twitter</a> <small>Ya vimos como se compartía un enlace en Facebook, y...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-fullscreen' rel='bookmark' title='Permanent Link: AS3 &#8211; FullScreen'>AS3 &#8211; FullScreen</a> <small>Poner una web a fullscreen es bastante fácil, pero hay...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-tirachinas' rel='bookmark' title='Permanent Link: AS3 &#8211; Tirachinas'>AS3 &#8211; Tirachinas</a> <small>Viendo este gracioso juego para el iPad hecho en AIR...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a> en el blog <a href="http://www.yporqueno.es/blog" target="_blank">http://www.yporqueno.es/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://www.yporqueno.es/blog/as3-singleton" target="_blank">http://www.yporqueno.es/blog/as3-singleton</a></p>
<script type="text/javascript">
window.location = "http://www.yporqueno.es/blog/as3-singleton"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Uno de los <a href="http://es.wikipedia.org/wiki/Patr%C3%B3n_de_dise%C3%B1o" onclick="javascript:pageTracker._trackPageview('/outbound/article/es.wikipedia.org');" target="_blank">patrones de diseño</a> que mas útiles en mi opinión es el <a href="http://es.wikipedia.org/wiki/Patr%C3%B3n_de_dise%C3%B1o_Singleton" onclick="javascript:pageTracker._trackPageview('/outbound/article/es.wikipedia.org');" target="_blank">Singleton</a>. Si queremos almacenar datos relevantes para nuestro proyecto y que sean accesibles fácilmente desde cualquier sitio es la mejor opción. O para la típica cartela de avisos que solo puede estar abierta una vez y que tiene que llamarse desde muchos sitios.</p>
<p>Para construirlo a mi esta es la forma que mas me gusta:</p>
<pre><span style="color: #0000ff">package</span> {

	<span style="color: #0000ff">public</span> <span style="color: #0000ff">class</span> Modelo {

		<span style="color: #0000ff">private</span> <span style="color: #0000ff">static</span> <span style="color: #0000ff">var</span> _instance:Modelo;

		<span style="color: #0000ff">public</span> <span style="color: #0000ff">function</span> Modelo(singletonenforcer:SingletonEnforcer) {
			<span style="color: #0000ff">if</span> (singletonenforcer == <span style="color: #0000ff">null</span>) {
				<span style="color: #0000ff">throw</span> <span style="color: #0000ff">new</span> Error(&quot;<span style="color: #8b0000">Modelo es un Singleton. Para acceder a una instancia hacedlo mediante Modelo.getInstance()</span>&quot;);
				<span style="color: #0000ff">return</span>;
			}
		}

		<span style="color: #0000ff">public</span> <span style="color: #0000ff">static</span> <span style="color: #0000ff">function</span> getInstance():Modelo {
			<span style="color: #0000ff">if</span> (!_instance) {
				_instance = <span style="color: #0000ff">new</span> Modelo(<span style="color: #0000ff">new</span> SingletonEnforcer());
			}
			<span style="color: #0000ff">return</span> _instance;
		}

	}
}

<span style="color: #0000ff">class</span> SingletonEnforcer{}</pre>
<p>De esta manera podemos acceder así:</p>
<pre>Modelo.getInstance().guardarDatos();
Modelo.getInstance().recogerDatos();</pre>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://www.yporqueno.es/blog/as3-singleton" target="_blank">http://www.yporqueno.es/blog/as3-singleton</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.yporqueno.es/blog/as3-singleton/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cargar imágenes en aplicaciones iOS con Flash CS5.5</title>
		<link>http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/</link>
		<comments>http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/#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/clase-para-cargar-contenido-externo-en-actionscript-3/" rel="bookmark" title="Permanent Link: 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/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/" rel="bookmark" title="Permanent Link: 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/cargar-xml-en-un-componente-list-en-actionscript-3/" rel="bookmark" title="Permanent Link: Cargar XML en un componente List en Actionscript 3">Cargar XML en un componente List en Actionscript 3</a></li>
</ol>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/o1sGRp70jRc/' rel='bookmark' title='Permanent Link: 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> <small>Adobe acaba de anunciar una actualización del SDK de AIR,...</small></li>
<li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/' rel='bookmark' title='Permanent Link: 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> <small>Es probable que en una aplicación para teléfono móvil nos...</small></li>
<li><a href='http://tutorialesadobe.com/flash/crear-galeria-imagenes-flash-as3/' rel='bookmark' title='Permanent Link: Crear una galería de imágenes en Flash con AS3'>Crear una galería de imágenes en Flash con AS3</a> <small>En esta serie de 2 video-tutoriales de BatataStudio mostramos cómo...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.codigoactionscript.org" target="_blank">admin</a> en el blog <a href="http://www.codigoactionscript.org" target="_blank">http://www.codigoactionscript.org</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Cuando creamos una aplicación para <a href="http://www.cristalab.com/tags/iphone" target="_blank">Iphone</a> desde <a href="http://www.cristalab.com/tags/flash" target="_blank">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" target="_blank">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" target="_blank">AIR</a> para <a href="http://www.cristalab.com/tags/ios" target="_blank">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="syntax_hilite">
<div id="actionscript-4">
<div class="actionscript"><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;">326</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">//iphone 4</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&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>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleX</span> = .<span style="color: #cc66cc;">5</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">scaleY</span> = .<span style="color: #cc66cc;">5</span>;<br />
<span style="color: #66cc66;">&#125;</span></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" target="_blank">un tip hace mucho tiempo</a> quedaría asi:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-5">
<div class="actionscript">package com.<span style="color: #006600;">cristalab</span>.<span style="color: #006600;">display</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Bitmap</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Loader</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">Capabilities</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #006600;">LoaderContext</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&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<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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>;<br />
&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>;<br />
&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>;<br />
&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>;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> 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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = asset;<br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.__load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; borra<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = a;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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>;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__urlAsset = <span style="color: #000000; font-weight: bold;">null</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> $__cargado;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> __load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #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;">326</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">//iphone 4</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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>;<br />
&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;">5</span>;<br />
&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;">5</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&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>;<br />
&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;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>$__loader<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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>;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $__cargado = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//-----------------------------------------</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></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="syntax_hilite">
<div id="actionscript-6">
<div class="actionscript"><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>
</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>



Comparte:


	<a rel="nofollow" href="http://meneame.net/submit.php?url=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/" title="Meneame" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitter.com/home?status=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5%20-%20http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/" title="Twitter" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/&amp;t=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5" title="Facebook" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/&amp;title=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5&amp;source=CODIGO.actionscript+Blog+de+programaci%C3%B3n+en+ActionScript.+Tips,+tutoriales,+ejemplos+de+Adobe+Flash,+Flex+y+AIR&amp;summary=Cuando%20creamos%20una%20aplicaci%C3%B3n%20para%20%20desde%20%20el%20tama%C3%B1o%20de%20documento%20que%20utilizamos%20es%20%20que%20es%20la%20resoluci%C3%B3n%20disponible%20en%20un%20Iphone%203.%20%0D%0A%0D%0AEn%20el%20caso%20del%20Iphone%204%20tenemos%20una%20resoluci%C3%B3n%20de%20,%20osea%20que%20nuestra%20aplicaci%C3%B3n%20se%20escalar%C3%A1%20para%20adaptarse%20" title="LinkedIn" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/&amp;title=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5&amp;annotation=Cuando%20creamos%20una%20aplicaci%C3%B3n%20para%20%20desde%20%20el%20tama%C3%B1o%20de%20documento%20que%20utilizamos%20es%20%20que%20es%20la%20resoluci%C3%B3n%20disponible%20en%20un%20Iphone%203.%20%0D%0A%0D%0AEn%20el%20caso%20del%20Iphone%204%20tenemos%20una%20resoluci%C3%B3n%20de%20,%20osea%20que%20nuestra%20aplicaci%C3%B3n%20se%20escalar%C3%A1%20para%20adaptarse%20" title="Google Bookmarks" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://delicious.com/post?url=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/&amp;title=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5&amp;notes=Cuando%20creamos%20una%20aplicaci%C3%B3n%20para%20%20desde%20%20el%20tama%C3%B1o%20de%20documento%20que%20utilizamos%20es%20%20que%20es%20la%20resoluci%C3%B3n%20disponible%20en%20un%20Iphone%203.%20%0D%0A%0D%0AEn%20el%20caso%20del%20Iphone%204%20tenemos%20una%20resoluci%C3%B3n%20de%20,%20osea%20que%20nuestra%20aplicaci%C3%B3n%20se%20escalar%C3%A1%20para%20adaptarse%20" title="del.icio.us" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/" title="Technorati" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Cargar%20im%C3%A1genes%20en%20aplicaciones%20iOS%20con%20Flash%20CS5.5&amp;body=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/" title="email" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.printfriendly.com/print?url=http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/&amp;partner=sociable" title="Print" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>


<br/><br/>

<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/clase-para-cargar-contenido-externo-en-actionscript-3/' rel='bookmark' title='Permanent Link: Clase para cargar contenido externo en Actionscript 3' target="_blank">Clase para cargar contenido externo en Actionscript 3</a></li>
<li><a href='http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/' rel='bookmark' title='Permanent Link: Detectar la conexión 3G o Wifi en aplicaciones AIR para Android' target="_blank">Detectar la conexión 3G o Wifi en aplicaciones AIR para Android</a></li>
<li><a href='http://www.codigoactionscript.org/cargar-xml-en-un-componente-list-en-actionscript-3/' rel='bookmark' title='Permanent Link: Cargar XML en un componente List en Actionscript 3' target="_blank">Cargar XML en un componente List en Actionscript 3</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/codigoactionscript/~4/UZ2XrUBhQlI" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.codigoactionscript.org" target="_blank">admin</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/</a></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://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/</link>
		<comments>http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/#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 AIR 2 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="Permanent Link: 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/adobe-air-2-6-para-android-ya-disponible/" rel="bookmark" title="Permanent Link: 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-desarrollo-air-para-android-con-flash-cs5/" rel="bookmark" title="Permanent Link: AdobeTV: Desarrollo AIR para Android con Flash CS5">AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/RNlO5qwFSNU/' rel='bookmark' title='Permanent Link: Adobe AIR 2.6 para Android ya disponible'>Adobe AIR 2.6 para Android ya disponible</a> <small>Desde ayer está disponible en el Android Market Adobe AIR...</small></li>
<li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/8xtoFvxP2y8/' rel='bookmark' title='Permanent Link: AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a> <small>Duane Nickull ilustra las diferencias en el desarrollo de aplicaciones...</small></li>
<li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/o1sGRp70jRc/' rel='bookmark' title='Permanent Link: 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> <small>Adobe acaba de anunciar una actualización del SDK de AIR,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.codigoactionscript.org" target="_blank">admin</a> en el blog <a href="http://www.codigoactionscript.org" target="_blank">http://www.codigoactionscript.org</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<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" target="_blank">AIR 2</a> 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="syntax_hilite">
<div id="actionscript-8">
<div class="actionscript">package com.<span style="color: #006600;">cristalab</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">mobile</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #0066CC;">MovieClip</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">NetworkInfo</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">NetworkInterface</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//------------------------------------------------------</span><br />
&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><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> ni:NetworkInfo = NetworkInfo.<span style="color: #006600;">networkInfo</span>;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> NetworkInterfaceUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>&nbsp; &nbsp;<br />
&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>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkNetworkInterface<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> interfaceVector:Vector.&lt;NetworkInterface&gt; = ni.<span style="color: #006600;">findInterfaces</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&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;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">"mobile"</span> :<br />
&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;">2</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">"WIFI"</span> :<br />
&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;">3</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">default</span> :<br />
&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;">1</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></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>



Comparte:


	<a rel="nofollow" href="http://meneame.net/submit.php?url=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/" title="Meneame" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitter.com/home?status=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android%20-%20http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/" title="Twitter" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/&amp;t=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android" title="Facebook" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/&amp;title=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android&amp;source=CODIGO.actionscript+Blog+de+programaci%C3%B3n+en+ActionScript.+Tips,+tutoriales,+ejemplos+de+Adobe+Flash,+Flex+y+AIR&amp;summary=Es%20probable%20que%20en%20una%20aplicaci%C3%B3n%20para%20tel%C3%A9fono%20m%C3%B3vil%20nos%20interese%20saber%20si%20estamos%20conectando%20a%20la%20red%20a%20trav%C3%A9s%20de%20la%20conexi%C3%B3n%203G%20o%20a%20trav%C3%A9s%20de%20WIFI,%20para%20ejecutar%20diferentes%20acciones,%20permitir%20descargas%20de%20contenido%20etc..%20O%20simplemente%20para%20s" title="LinkedIn" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/&amp;title=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android&amp;annotation=Es%20probable%20que%20en%20una%20aplicaci%C3%B3n%20para%20tel%C3%A9fono%20m%C3%B3vil%20nos%20interese%20saber%20si%20estamos%20conectando%20a%20la%20red%20a%20trav%C3%A9s%20de%20la%20conexi%C3%B3n%203G%20o%20a%20trav%C3%A9s%20de%20WIFI,%20para%20ejecutar%20diferentes%20acciones,%20permitir%20descargas%20de%20contenido%20etc..%20O%20simplemente%20para%20s" title="Google Bookmarks" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://delicious.com/post?url=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/&amp;title=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android&amp;notes=Es%20probable%20que%20en%20una%20aplicaci%C3%B3n%20para%20tel%C3%A9fono%20m%C3%B3vil%20nos%20interese%20saber%20si%20estamos%20conectando%20a%20la%20red%20a%20trav%C3%A9s%20de%20la%20conexi%C3%B3n%203G%20o%20a%20trav%C3%A9s%20de%20WIFI,%20para%20ejecutar%20diferentes%20acciones,%20permitir%20descargas%20de%20contenido%20etc..%20O%20simplemente%20para%20s" title="del.icio.us" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/" title="Technorati" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Detectar%20la%20conexi%C3%B3n%203G%20o%20Wifi%20en%20aplicaciones%20AIR%20para%20Android&amp;body=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/" title="email" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.printfriendly.com/print?url=http://www.codigoactionscript.org/detectar-la-conexion-3g-o-wifi-en-aplicaciones-air-para-android/&amp;partner=sociable" title="Print" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>


<br/><br/>

<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/cargar-imagenes-en-aplicaciones-ios-con-flash-cs5-5/' rel='bookmark' title='Permanent Link: Cargar imágenes en aplicaciones iOS con Flash CS5.5' target="_blank">Cargar imágenes en aplicaciones iOS con Flash CS5.5</a></li>
<li><a href='http://www.codigoactionscript.org/adobe-air-2-6-para-android-ya-disponible/' rel='bookmark' title='Permanent Link: Adobe AIR 2.6 para Android ya disponible' target="_blank">Adobe AIR 2.6 para Android ya disponible</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='Permanent Link: AdobeTV: Desarrollo AIR para Android con Flash CS5' target="_blank">AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/codigoactionscript/~4/nS1Fkvn2tvo" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.codigoactionscript.org" target="_blank">admin</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/nS1Fkvn2tvo/</a></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>0</slash:comments>
		</item>
		<item>
		<title>AdobeTV: Control del escritorio con dispositivos móviles</title>
		<link>http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/</link>
		<comments>http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/#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" /><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>



Comparte:


	
	
	
	
	
	
	
	
	




<p>Related posts:AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder
Beta de Adobe AIR 2.0 [...]


Related posts:<ol><li><a href="http://www.codigoactionscript.org/adobetv-conectar-un-diseno-de-flash-catalyst-a-una-base-de-datos-con-flash-builder/" rel="bookmark" title="Permanent Link: AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder">AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder</a></li>
<li><a href="http://www.codigoactionscript.org/beta-de-adobe-air-2-0-disponible-en-labs/" rel="bookmark" title="Permanent Link: Beta de Adobe AIR 2.0 disponible en Labs">Beta de Adobe AIR 2.0 disponible en Labs</a></li>
<li><a href="http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/" rel="bookmark" title="Permanent Link: AdobeTV: Desarrollo AIR para Android con Flash CS5">AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/8xtoFvxP2y8/' rel='bookmark' title='Permanent Link: AdobeTV: Air for Android Development'>AdobeTV: Air for Android Development</a> <small>Duane Nickull ilustra las diferencias en el desarrollo de aplicaciones...</small></li>
<li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/YZClyd2nMmI/' rel='bookmark' title='Permanent Link: Desarrollo para iOS con AIR 2.6'>Desarrollo para iOS con AIR 2.6</a> <small>En este video, Ryan Stewart presenta nuevas funciones de AIR...</small></li>
<li><a href='http://tutorialesadobe.com/flash/uso-componente-progressbar-carga-externa-flash-as3/' rel='bookmark' title='Permanent Link: Uso del componente Progressbar en una carga externa en Flash con AS3'>Uso del componente Progressbar en una carga externa en Flash con AS3</a> <small>En este video-tutorial de BatataStudio mostramos cómo usar el componente...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.codigoactionscript.org" target="_blank">admin</a> en el blog <a href="http://www.codigoactionscript.org" target="_blank">http://www.codigoactionscript.org</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<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>



Comparte:


	<a rel="nofollow" href="http://meneame.net/submit.php?url=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/" title="Meneame" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitter.com/home?status=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles%20-%20http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/" title="Twitter" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/&amp;t=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles" title="Facebook" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/&amp;title=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles&amp;source=CODIGO.actionscript+Blog+de+programaci%C3%B3n+en+ActionScript.+Tips,+tutoriales,+ejemplos+de+Adobe+Flash,+Flex+y+AIR&amp;summary=Platform%20Evangelist%20Tomas%20Krcha%20demuestra%20la%20capacidad%20de%20controlar%20una%20aplicaci%C3%B3n%20de%20escritorio%20a%20trav%C3%A9s%20de%20dispositivos%20m%C3%B3viles%20con%20Flash%20Builder.%0D%0A%0D%0A" title="LinkedIn" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/&amp;title=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles&amp;annotation=Platform%20Evangelist%20Tomas%20Krcha%20demuestra%20la%20capacidad%20de%20controlar%20una%20aplicaci%C3%B3n%20de%20escritorio%20a%20trav%C3%A9s%20de%20dispositivos%20m%C3%B3viles%20con%20Flash%20Builder.%0D%0A%0D%0A" title="Google Bookmarks" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://delicious.com/post?url=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/&amp;title=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles&amp;notes=Platform%20Evangelist%20Tomas%20Krcha%20demuestra%20la%20capacidad%20de%20controlar%20una%20aplicaci%C3%B3n%20de%20escritorio%20a%20trav%C3%A9s%20de%20dispositivos%20m%C3%B3viles%20con%20Flash%20Builder.%0D%0A%0D%0A" title="del.icio.us" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/" title="Technorati" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=AdobeTV:%20Control%20del%20escritorio%20con%20dispositivos%20m%C3%B3viles&amp;body=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/" title="email" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.printfriendly.com/print?url=http://www.codigoactionscript.org/adobetv-control-del-escritorio-con-dispositivos-moviles/&amp;partner=sociable" title="Print" target="_blank"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>


<br/><br/>

<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/adobetv-conectar-un-diseno-de-flash-catalyst-a-una-base-de-datos-con-flash-builder/' rel='bookmark' title='Permanent Link: AdobeTV: Conectar un diseño de Flash Catalyst a una Base de datos con Flash Builder' target="_blank">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='Permanent Link: Beta de Adobe AIR 2.0 disponible en Labs' target="_blank">Beta de Adobe AIR 2.0 disponible en Labs</a></li>
<li><a href='http://www.codigoactionscript.org/adobetv-desarrollo-air-para-android-con-flash-cs5/' rel='bookmark' title='Permanent Link: AdobeTV: Desarrollo AIR para Android con Flash CS5' target="_blank">AdobeTV: Desarrollo AIR para Android con Flash CS5</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/codigoactionscript/~4/k7uEk6KsQdg" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.codigoactionscript.org" target="_blank">admin</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/" target="_blank">http://feedproxy.google.com/~r/codigoactionscript/~3/k7uEk6KsQdg/</a></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>Depurar Flash con Firebug</title>
		<link>http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/</link>
		<comments>http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/#comments</comments>
		<pubDate>Mon, 16 May 2011 04:57:20 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[trace]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=1268</guid>
		<description><![CDATA[<p>Depurar flash en el ambiente de desarrollo es sencillo a través del método <em>trace</em> que muestra un texto de forma semejante a la función <em>alert</em> de javascript. El problema radica cuando tenemos que depurar los SWFs&#8230;</p>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/unijimpe/~3/vr1mN4v9cA0/' rel='bookmark' title='Permanent Link: Depurar Javascript utilizando console.log()'>Depurar Javascript utilizando console.log()</a> <small>Tradicionalmente para depurar Javascript se hace uso de la función...</small></li>
<li><a href='http://feedproxy.google.com/~r/SdrTutorialesFlashPapervision/~3/AIqiaIC_Cao/como-depurar-errores-de-actionscript-i' rel='bookmark' title='Permanent Link: Como depurar errores de Actionscript I'>Como depurar errores de Actionscript I</a> <small>Muchas de las preguntas que aparecen en los foros de...</small></li>
<li><a href='http://tutorialesadobe.com/flash/boton-flash-actionscript3/' rel='bookmark' title='Permanent Link: Agregar funcionalidad a un botón en Flash con ActionScript 3'>Agregar funcionalidad a un botón en Flash con ActionScript 3</a> <small>Este video video-tutorial mostramos cómo el uso de ActionScript 3...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> en el blog <a href="http://blog.unijimpe.net" target="_blank">http://blog.unijimpe.net</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/KbhleLApTirxIuFLo8U4ORUaRhQ/0/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/KbhleLApTirxIuFLo8U4ORUaRhQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KbhleLApTirxIuFLo8U4ORUaRhQ/1/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/KbhleLApTirxIuFLo8U4ORUaRhQ/1/di" border="0" ismap="true"></img></a></p><p>Depurar flash en el ambiente de desarrollo es sencillo a través del método <em>trace</em> que muestra un texto de forma semejante a la función <em>alert</em> de javascript. El problema radica cuando tenemos que depurar los SWFs ya publicados en una pagina pues trace solo funciona en el <em>Flash IDE</em>.</p><p><img src="http://blog.unijimpe.net/wp-content/uploads/2011/05/tracer.gif" alt="" title="tracer" width="398" height="299" class="alignnone size-full wp-image-1269" /></p><p><strong>Creando un trace personalizado</strong></p><p>La solución es sencilla, para ello vamos a crear una función en flash llamada <em>tracer</em> que además de hacer el trace normal utilice la función <em>console.log</em> de Firebug con lo cual podemos imprimir el resultado de cualquier parámetro en el navegador.</p><div class="syntax_hilite"><div id="actionscript-42"><div class="actionscript"><ol><li style="color:#3A6A8B;"><div style=""><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #006600;">ExternalInterface</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color: #000000; font-weight: bold;">function</span> tracer<span style="color: #66cc66;">&#40;</span>msg:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>msg<span style="color: #66cc66;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">"console.log"</span> , msg<span style="color: #66cc66;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div></div><p></p><p>Utilizar esta función es sencilla, tiene la misma sintaxis de la función trace. Por ejemplo si deseamos imprimir un texto tendríamos:</p><div class="syntax_hilite"><div id="actionscript-43"><div class="actionscript"><ol><li style="color:#3A6A8B;"><div style="">tracer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Start..."</span><span style="color: #66cc66;">&#41;</span>;</div></li></ol></div></div></div><p></p><p>También se puede utilizar dentro de bucles o estructuras condicionales:</p><div class="syntax_hilite"><div id="actionscript-44"><div class="actionscript"><ol><li style="color:#3A6A8B;"><div style=""><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i=<span style="color: #cc66cc;color:#800000;">0</span>; i&lt;<span style="color: #cc66cc;color:#800000;">10</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; tracer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"-&gt; "</span> + i<span style="color: #66cc66;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div></div><p></p><p>Otra forma de depurar Flash en el navegador es utilizando la extensión para Firefox llamada <a href="http://blog.coursevector.com/flashbug" target="_blank">Flashbug</a> pero necesita tener instalado la versión Debug de Flash Player, mientras que la versión que hemos presentado es mucho mas sencilla y no requiere instalar extensiones ni otra versión del player. También funciona en Safari pues este soporta el comando console.log().</p><p style="text-align:left;"><a href="http://blog.unijimpe.net/download/tracer.zip" title="Tracer" target="_blank"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p><p style="font-size: 10px;border-top: 1px solid #666666;margin-top=12px;padding-top:6px;">&copy; 2006 - 2011 <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> - Utiliza este feed solo para uso personal, partes de este feed pueden ser utilizados mencionando al autor, no esta permitido publicar enteramente este feed para uso comercial sin permiso del autor.</p><br /> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unijimpe?a=c_fAxGbMXm4:-PeqZJ-62js:yIl2AUoC8zA" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=c_fAxGbMXm4:-PeqZJ-62js:D7DqB2pKExk" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=c_fAxGbMXm4:-PeqZJ-62js:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=c_fAxGbMXm4:-PeqZJ-62js:F7zBnMyn0Lo" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=c_fAxGbMXm4:-PeqZJ-62js:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/unijimpe/~4/c_fAxGbMXm4" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/c_fAxGbMXm4/</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/depurar-flash-con-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>As3. Detector de soplidos</title>
		<link>http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/</link>
		<comments>http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/#comments</comments>
		<pubDate>Mon, 02 May 2011 16:23:37 +0000</pubDate>
		<dc:creator>Carlos Hernández</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex 4]]></category>

		<guid isPermaLink="false">http://www.coconnut.com/blog/?p=1242</guid>
		<description><![CDATA[Una pequeña prueba de detección de soplidos basada en nivel de actividad del micrófono. No incluye ningun procesamiento avanzado, simplemente permite ajustar los niveles del micrófono y establecer los umbrales de detección. Ver ejemplo &#062;&#062; Ver código &#062;&#062;


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/SdrTutorialesFlashPapervision/~3/SXdphPxUq28/disponible-la-beta-de-flash-player-103' rel='bookmark' title='Permanent Link: Disponible la beta de Flash Player 10.3'>Disponible la beta de Flash Player 10.3</a> <small>Ya está disponible la beta de Flash Player 10.3 para...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.coconnut.com/blog" target="_blank">Carlos Hernández</a> en el blog <a href="http://www.coconnut.com/blog" target="_blank">http://www.coconnut.com/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/" target="_blank">http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Una pequeña prueba de detección de soplidos basada en nivel de actividad del micrófono. No incluye ningun procesamiento avanzado, simplemente permite ajustar los niveles del micrófono y establecer los umbrales de detección.</p>
<p style="text-align: center;"><a href="http://www.coconnut.com/blog/source/soplidos/index.html" target="_blank"><img class="aligncenter size-full wp-image-1243" title="soplidos_detector" src="http://www.coconnut.com/blog/wp-content/uploads/2011/05/soplidos_detector.png" alt="" width="604" height="412" /></a></p>
<p><a href="http://www.coconnut.com/blog/source/soplidos/index.html" target="_blank">Ver ejemplo &gt;&gt;</a></p>
<p><a href="http://www.coconnut.com/blog/source/soplidos/srcview/index.html" target="_blank">Ver código &gt;&gt;</a></p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.coconnut.com/blog" target="_blank">Carlos Hernández</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/" target="_blank">http://feedproxy.google.com/~r/blogcoconnut/~3/NipDNbVht2s/</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.coconnut.com/blog/2011/05/02/as3-detector-de-soplidos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Baricentro y Ortocentro</title>
		<link>http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro</link>
		<comments>http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro#comments</comments>
		<pubDate>Tue, 26 Apr 2011 20:18:42 +0000</pubDate>
		<dc:creator>Iván Gajate</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[baricentro]]></category>
		<category><![CDATA[circuncentro]]></category>
		<category><![CDATA[circunferencia]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[trigonometría]]></category>

		<guid isPermaLink="false">http://www.yporqueno.es/blog/?p=1469</guid>
		<description><![CDATA[Si queremos jugar un poco con las circunferencias y sus radios, radios de curvatura, etc&#8230;, esto nos va a venir muy bien:)
http://mx.answers.yahoo.com/question/index?qid=20070313201440AAtsHft
Y con Vectores:
http://wonderfl.net/c/56pU
Los enlaces ...


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a> en el blog <a href="http://www.yporqueno.es/blog" target="_blank">http://www.yporqueno.es/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro" target="_blank">http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro</a></p>
<script type="text/javascript">
window.location = "http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Si queremos jugar un poco con las circunferencias y sus radios, radios de curvatura, etc&#8230;, esto nos va a venir muy bien:)</p>
<p><a href="http://mx.answers.yahoo.com/question/index?qid=20070313201440AAtsHft" onclick="javascript:pageTracker._trackPageview('/outbound/article/mx.answers.yahoo.com');" target="_blank">http://mx.answers.yahoo.com/question/index?qid=20070313201440AAtsHft</a></p>
<p>Y con Vectores:</p>
<p><a href="http://wonderfl.net/c/56pU" onclick="javascript:pageTracker._trackPageview('/outbound/article/wonderfl.net');" target="_blank">http://wonderfl.net/c/56pU</a></p>
<p>Los enlaces me los ha pasado <a href="http://drusunlimited.com/blog/" onclick="javascript:pageTracker._trackPageview('/outbound/article/drusunlimited.com');" target="_blank">Drus</a> <img src='http://www.yporqueno.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro" target="_blank">http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.yporqueno.es/blog/as3-baricentro-y-ortocentro/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Cargar Assets Usando un Proxy</title>
		<link>http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy</link>
		<comments>http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy#comments</comments>
		<pubDate>Tue, 26 Apr 2011 19:40:09 +0000</pubDate>
		<dc:creator>Iván Gajate</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[crossdomain]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[violacion]]></category>
		<category><![CDATA[violation]]></category>

		<guid isPermaLink="false">http://www.yporqueno.es/blog/?p=1463</guid>
		<description><![CDATA[Cuando tratamos de cargar imágenes o xmls de otros dominios, nos encontramos con el problema de que por seguridad no es posible hacerlo directamente. Si tenemos acceso al otro dominio, podemos usar el “crossdomain.xml”, pero si no, podemos recurrir a un proxy.
Para entenderlo mejor, aquí hay un tutorial muy explicativo.
La forma de saltarse el problema [...]


Related posts:<ol><li><a href='http://www.yporqueno.es/blog/php-escribir-un-xml-con-cdata-usando-simplexml' rel='bookmark' title='Permanent Link: PHP – Escribir un XML con CDATA Usando SimpleXML'>PHP – Escribir un XML con CDATA Usando SimpleXML</a> <small>Si usamos la fantástica librería de PHP SimpleXML para leer...</small></li>
<li><a href='http://feedproxy.google.com/~r/codigoactionscript/~3/UZ2XrUBhQlI/' rel='bookmark' title='Permanent Link: Cargar imágenes en aplicaciones iOS con Flash CS5.5'>Cargar imágenes en aplicaciones iOS con Flash CS5.5</a> <small>Cuando creamos una aplicación para Iphone desde Flash el tamaño...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-tirachinas' rel='bookmark' title='Permanent Link: AS3 &#8211; Tirachinas'>AS3 &#8211; Tirachinas</a> <small>Viendo este gracioso juego para el iPad hecho en AIR...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a> en el blog <a href="http://www.yporqueno.es/blog" target="_blank">http://www.yporqueno.es/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy" target="_blank">http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy</a></p>
<script type="text/javascript">
window.location = "http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Cuando tratamos de cargar imágenes o xmls de otros dominios, nos encontramos con el problema de que por seguridad no es posible hacerlo directamente. Si tenemos acceso al otro dominio, podemos usar el “<strong>crossdomain.xml</strong>”, pero si no, podemos recurrir a un <em>proxy</em>.</p>
<p>Para entenderlo mejor, aquí hay un <a href="http://active.tutsplus.com/tutorials/actionscript/quick-tip-using-a-php-proxy-to-load-assets-into-flash/" onclick="javascript:pageTracker._trackPageview('/outbound/article/active.tutsplus.com');" target="_blank">tutorial muy explicativo</a>.</p>
<p>La forma de saltarse el problema es cargar las cosas con un php intermedio que se encuentra en nuestro servidor (<em>proxy</em>), y que sencillamente nos devuelve lo que le hemos pedido en el formato que corresponde. Así, con este php en nuestro servidor (<em><strong>proxy.php</strong></em>):</p>
<pre><span style="color: #0000ff">&lt;?</span>php

$filename = $_GET['<span style="color: #8b0000">url</span>'];
$ext = <a style="color: #ffa500" href="http://www.php.net/pathinfo" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">pathinfo</a>($filename, PATHINFO_EXTENSION);

<a style="color: #0000ff" href="http://www.php.net/switch" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">switch</a> ($ext) {
    <a style="color: #0000ff" href="http://www.php.net/case" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">case</a> &quot;<span style="color: #8b0000">jpg</span>&quot;:
        <a style="color: #ffa500" href="http://www.php.net/header" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">header</a>('<span style="color: #8b0000">Content-Type: image/jpeg</span>');
        <a style="color: #ffa500" href="http://www.php.net/readfile" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">readfile</a>($filename);
        <a style="color: #0000ff" href="http://www.php.net/break" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">break</a>;
    <a style="color: #0000ff" href="http://www.php.net/case" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">case</a> &quot;<span style="color: #8b0000">gif</span>&quot;:
        <a style="color: #ffa500" href="http://www.php.net/header" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">header</a>('<span style="color: #8b0000">Content-Type: image/gif</span>');
        <a style="color: #ffa500" href="http://www.php.net/readfile" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">readfile</a>($filename);
        <a style="color: #0000ff" href="http://www.php.net/break" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">break</a>;
    <a style="color: #0000ff" href="http://www.php.net/case" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">case</a> &quot;<span style="color: #8b0000">png</span>&quot;:
        <a style="color: #ffa500" href="http://www.php.net/header" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">header</a>('<span style="color: #8b0000">Content-Type: image/png</span>');
        <a style="color: #ffa500" href="http://www.php.net/readfile" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">readfile</a>($filename);
        <a style="color: #0000ff" href="http://www.php.net/break" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">break</a>;
    <a style="color: #0000ff" href="http://www.php.net/default" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">default</a>:
        <a style="color: #ffa500" href="http://www.php.net/header" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">header</a>('<span style="color: #8b0000">Content-Type: text/xml</span>');
        <a style="color: #ffa500" href="http://www.php.net/readfile" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">readfile</a>($filename);
        <a style="color: #0000ff" href="http://www.php.net/break" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.php.net');" target="_blank">break</a>;
    }
<span style="color: #0000ff">?&gt;</span></pre>
<p>En lugar de llamar a:</p>
<pre>http:<span style="color: #008000">//www.otrodominio.com/imagen1.jpg</span></pre>
<p>Lo haremos a:</p>
<pre>http:<span style="color: #008000">//www.midominio.com/proxy.php?url=http://www.otrodominio.com/imagen1.jpg</span></pre>
<p>De esta manera nos saltaremos el problema del <em>sandbox</em> <img src='http://www.yporqueno.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy" target="_blank">http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.yporqueno.es/blog/as3-cargar-assets-usando-un-proxy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Bajar Volumen Global</title>
		<link>http://www.yporqueno.es/blog/as3-bajar-volumen-global</link>
		<comments>http://www.yporqueno.es/blog/as3-bajar-volumen-global#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:59:49 +0000</pubDate>
		<dc:creator>Iván Gajate</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[bajar]]></category>
		<category><![CDATA[cambiar]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[modificar]]></category>
		<category><![CDATA[sonido]]></category>
		<category><![CDATA[volumen]]></category>

		<guid isPermaLink="false">http://www.yporqueno.es/blog/?p=1460</guid>
		<description><![CDATA[Con estas líneas podemos cambiar el volumen de nuestra película flash de forma global:
function setearVolumen(value:Number):void {
	var transform:SoundTransform = new SoundTransform();
	transform.volume = value;
	flash.media.SoundMixer.soundTransform...


Related posts:<ol><li><a href='http://www.yporqueno.es/blog/as3-compartir-en-twitter' rel='bookmark' title='Permanent Link: AS3 &#8211; Compartir en Twitter'>AS3 &#8211; Compartir en Twitter</a> <small>Ya vimos como se compartía un enlace en Facebook, y...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-fullscreen' rel='bookmark' title='Permanent Link: AS3 &#8211; FullScreen'>AS3 &#8211; FullScreen</a> <small>Poner una web a fullscreen es bastante fácil, pero hay...</small></li>
<li><a href='http://www.yporqueno.es/blog/as3-tirachinas' rel='bookmark' title='Permanent Link: AS3 &#8211; Tirachinas'>AS3 &#8211; Tirachinas</a> <small>Viendo este gracioso juego para el iPad hecho en AIR...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a> en el blog <a href="http://www.yporqueno.es/blog" target="_blank">http://www.yporqueno.es/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://www.yporqueno.es/blog/as3-bajar-volumen-global" target="_blank">http://www.yporqueno.es/blog/as3-bajar-volumen-global</a></p>
<script type="text/javascript">
window.location = "http://www.yporqueno.es/blog/as3-bajar-volumen-global"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Con estas líneas podemos cambiar el volumen de nuestra película flash de forma global:</p>
<pre><span style="color: #0000ff">function</span> setearVolumen(value:<span style="color: #0000ff">Number</span>):<span style="color: #0000ff">void</span> {
	<span style="color: #0000ff">var</span> transform:SoundTransform = <span style="color: #0000ff">new</span> SoundTransform();
	transform.volume = value;
	flash.media.SoundMixer.soundTransform = transform;
}</pre>
<p>El código es de <a href="http://www.esedeerre.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.esedeerre.com');" target="_blank">Esedeerre</a> que está muy liado para ponerla en su blog, pero era muy interesante postearla. Gracias Dani!! <img src='http://www.yporqueno.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://www.yporqueno.es/blog" target="_blank">Iván Gajate</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://www.yporqueno.es/blog/as3-bajar-volumen-global" target="_blank">http://www.yporqueno.es/blog/as3-bajar-volumen-global</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.yporqueno.es/blog/as3-bajar-volumen-global/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

