<?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>Hontai &#187; TweenMax</title>
	<atom:link href="http://www.hontai.es/tag/tweenmax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hontai.es</link>
	<description>Hontai? no sería mejor hentai(manga guarro)?</description>
	<lastBuildDate>Sun, 09 May 2010 19:34:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple transición de fotografías con AS2</title>
		<link>http://www.hontai.es/2009/09/simple-transicion-de-fotografias/</link>
		<comments>http://www.hontai.es/2009/09/simple-transicion-de-fotografias/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 08:23:02 +0000</pubDate>
		<dc:creator>n0ldor</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Tween]]></category>
		<category><![CDATA[TweenMax]]></category>

		<guid isPermaLink="false">http://www.hontai.es/?p=346</guid>
		<description><![CDATA[Después de un largo tiempo sin actualizar, principalmente debido a las vacaciones, hoy escribo de nuevo para dejar un pequeño código en AS2 que puede ser muy útil para hacer por pases de imágenes.
Simplemente tenemos que crear dos anclas, en este caso les pondré de nombre de instancia  “ancla_foto” y “ancla_fotoB”. Inicializo la variable [...]]]></description>
			<content:encoded><![CDATA[<p>Después de un largo tiempo sin actualizar, principalmente debido a las vacaciones, hoy escribo de nuevo para dejar un pequeño código en <a href="http://www.hontai.es/tag/as2/">AS2</a> que puede ser muy útil para hacer por pases de imágenes.</p>
<p>Simplemente tenemos que crear dos anclas, en este caso les pondré de nombre de instancia  “ancla_foto” y “ancla_fotoB”. Inicializo la variable “_root.enQueAncla” en la que le meto el nombre de instancia del ancla en la que quiero que empiece grabándome la primera imagen.</p>
<p>Y a continuación creo la función. Lo que  hace es simplemente cargar la imagen en la capa que está especificada en la variable. Me pasa el ancla a la capa superior y cambia en la variable el ancla en la que pegare la siguiente.</p>
<div class="igBar"><span id="lactionscript-3"><a href="#" onclick="javascript:showPlainTxt('actionscript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-3">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span> = <span style="color: #ff0000;">"ancla_foto"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> cambioFoto<span style="color: #66cc66;">&#40;</span>imagen<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">loadMovie</span> <span style="color: #66cc66;">&#40;</span>imagen<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">swapDepths</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">getNextHighestDepth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span> == <span style="color: #ff0000;">"ancla_foto"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span> = <span style="color: #ff0000;">"ancla_fotoB"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">enQueAncla</span> = <span style="color: #ff0000;">"ancla_foto"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora solo tendré que llamar a esa función especificándole la ruta de la imagen que quiero cargar.</p>
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showPlainTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cambioFoto<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"common/foto.jpg"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora si quiero simplemente tengo que añadirle algun <a href="http://www.hontai.es/tag/tween/">tween</a> para hacer la transición entre una fotografía y otra. Para ello recomiendo "<a href="http://blog.greensock.com/tweenliteas3/">tweenlite</a>".</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hontai.es/2009/09/simple-transicion-de-fotografias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparativa de engines de tweeners para AS 2 y 3</title>
		<link>http://www.hontai.es/2009/02/comparativa-de-engines-de-tweeners-para-as-2-y-3/</link>
		<comments>http://www.hontai.es/2009/02/comparativa-de-engines-de-tweeners-para-as-2-y-3/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 20:52:49 +0000</pubDate>
		<dc:creator>n0ldor</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tween]]></category>
		<category><![CDATA[TweenMax]]></category>

		<guid isPermaLink="false">http://www.hontai.es/?p=53</guid>
		<description><![CDATA[Hoy buscando un poco de información sobre el TweenMax me he encontrado con la siguiente página en la que se puede ver una comparativa entre distintos engines de tweeners.

Probando un poco con varias opciones distintas he llegado a la conclusión de que nunca mas volveré a utilizar el tween de adobe. La verdad es que [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy buscando un poco de información sobre el <a href="http://blog.greensock.com/tweenmaxas3/">TweenMax</a> me he encontrado con la siguiente página en la que se puede ver una comparativa entre distintos engines de tweeners.</p>
<p style="text-align: center;"><img class="aligncenter" title="Comparativa Tweeners" src="http://img54.imageshack.us/img54/7017/tweengc3.png" alt="Comparativa de Tweeners" width="549" height="291" /></p>
<p>Probando un poco con varias opciones distintas he llegado a la conclusión de que nunca mas volveré a utilizar el tween de adobe. La verdad es que es el mas lento con diferencia, mientras que el <a href="http://blog.greensock.com/tweenliteas3/">TweenLite </a>y el <a href="http://blog.greensock.com/tweenmaxas3/">TweenMax</a> son los mas rápidos, supongo que no influirá que ambos pertenezcan a greensock (la página en la que está la comparativa).</p>
<p>También se puede comprobar como con AS3 es muchísimo mas rápido que con AS2, de echo con AS3 ya te ponen de base un numero mayor de tweens por segundo.</p>
<p style="margin-bottom: 0cm;">Aquí os dejo el <a title="Blog greensock" href="http://blog.greensock.com/tweening-speed-test/">link a greensock</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hontai.es/2009/02/comparativa-de-engines-de-tweeners-para-as-2-y-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
