<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3538351416700309339</id><updated>2012-01-01T05:29:53.310-08:00</updated><category term='efecto flash'/><category term='dibujo'/><category term='firma'/><category term='flash'/><category term='control'/><category term='Presentación'/><category term='mouse'/><category term='action script 3'/><category term='as3'/><category term='linea'/><category term='swf'/><category term='youtube'/><category term='action script'/><category term='codigo'/><category term='salvapantallas'/><title type='text'>Albert Script</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-3051193905980579487</id><published>2007-04-23T16:00:00.000-07:00</published><updated>2007-04-23T16:02:48.590-07:00</updated><title type='text'></title><content type='html'>&lt;script type="text/javascript"&gt; function open_blom() { var blom_Options = "height=400,width=250,resizable"; var blom_strURL = 'http://bleebot.com/blom/my/?contact=almatees'; var blomMe = window.open(blom_strURL, 'MyBlom', blom_Options); blomMe.focus(); } &lt;/script&gt; &lt;a href="http://blom.bleebot.com/" onclick="open_blom(); return false"&gt;&lt;img border="0" src="http://blom.bleebot.com/btns/btn1.gif" alt="BlomMe" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-3051193905980579487?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/3051193905980579487/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=3051193905980579487' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/3051193905980579487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/3051193905980579487'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/function-openblom-var-blomoptions.html' title=''/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-8571302132392193260</id><published>2007-04-12T17:50:00.000-07:00</published><updated>2007-04-12T17:57:48.430-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swf'/><category scheme='http://www.blogger.com/atom/ns#' term='as3'/><category scheme='http://www.blogger.com/atom/ns#' term='action script 3'/><category scheme='http://www.blogger.com/atom/ns#' term='action script'/><category scheme='http://www.blogger.com/atom/ns#' term='efecto flash'/><category scheme='http://www.blogger.com/atom/ns#' term='codigo'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><category scheme='http://www.blogger.com/atom/ns#' term='youtube'/><title type='text'>Proteger los archivos externos</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Un problema muy común para los desarrolladores flash es el hecho de evitar que los &lt;a href="http://es.wikipedia.org/wiki/Lammer"&gt;lamers&lt;/a&gt; se descargen sus archivos swf y los decompilen para copiar el codigo, las animaciones, los mp3, o cualquier cosa que puedan aprovechar…&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Un truco muy fácil es cambiar la extensión a los archivos externos.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Flash para bien o para mal ignora las extensiones de los archivos, ya que supone que le estamos indicando un tipo de archivo correcto (sea un swf, un flv, un mp3…)&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Por lo que si tenemos un swf externo en el que tenemos algún tipo de código que queremos evitar que nos copien, cargado de esta manera:&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-10"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;loadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"peli.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Renombreamos el swf, le ponemos una extensión diferente, y lo cargamos de la misma manera. &lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-11"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;loadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"tabla_1_1.gif"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Flash cargará correctamente el swf.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;De esta manera cuando el lamer busque en la carpeta del caché del navegador buscando &lt;strong&gt;archivos swf &lt;/strong&gt;o &lt;strong&gt;mp3&lt;/strong&gt;… no los encontrará, ya que solo encontrará &lt;strong&gt;archivos gif&lt;/strong&gt; que se confundiran con el resto de ficheros de caché.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Podemos colocar gran parte del código en la pelicula principal y cargar mediante este sistema unas cuantas funciones o variables que sean imprescindibles para el correcto funcionamiento de la pelicula. Esto seguro que desespera a más de uno antes de descubrir porque no le funciona la pelicula.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Evidentemente este &lt;strong&gt;no es un metodo infalible&lt;/strong&gt;…. ya que si el lamer descubre el truco con cambiar la extensión al fichero ya está… pero hace que tengan que dedicarle más tiempo y que más de uno se olvide del tema.&lt;/span&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-8571302132392193260?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/8571302132392193260/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=8571302132392193260' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/8571302132392193260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/8571302132392193260'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/proteger-los-archivos-externos.html' title='Proteger los archivos externos'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-6217233334227937803</id><published>2007-04-12T17:23:00.000-07:00</published><updated>2007-04-12T17:29:44.774-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swf'/><category scheme='http://www.blogger.com/atom/ns#' term='as3'/><category scheme='http://www.blogger.com/atom/ns#' term='salvapantallas'/><category scheme='http://www.blogger.com/atom/ns#' term='dibujo'/><category scheme='http://www.blogger.com/atom/ns#' term='control'/><category scheme='http://www.blogger.com/atom/ns#' term='action script 3'/><category scheme='http://www.blogger.com/atom/ns#' term='action script'/><category scheme='http://www.blogger.com/atom/ns#' term='efecto flash'/><category scheme='http://www.blogger.com/atom/ns#' term='mouse'/><category scheme='http://www.blogger.com/atom/ns#' term='codigo'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><category scheme='http://www.blogger.com/atom/ns#' term='linea'/><title type='text'>Drag and Drop en Action Script 3</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Este es un pequeño ejemplo de como hacer un darg&amp;drop de un movieclip en actionscript3. &lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Crearemos en flash9 un Movieclip al que llamaremos "&lt;strong&gt;clip&lt;/strong&gt;".&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;En el fotograma añadiremos el siguiente código: &lt;/span&gt;&lt;/p&gt; &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;clip.addEventListener(MouseEvent.MOUSE_DOWN, onMouse_Down);&lt;br /&gt;clip.addEventListener(MouseEvent.MOUSE_UP, onMouse_Up);&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Con esto asignaremoslos eventos de pulsar y soltar el mouse sobre el clip a las funciones "&lt;em&gt;onMouse_Down&lt;/em&gt;" y "&lt;em&gt;onMouse_Up&lt;/em&gt;".&lt;br /&gt;Ahora definiremos estas funciones: &lt;/span&gt;&lt;/p&gt; &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;function onMouse_Down(e:Event):void{&lt;br /&gt;   clip.startDrag()&lt;br /&gt;}&lt;br /&gt;function onMouse_Up(e:Event):void{&lt;br /&gt;   clip.stopDrag();&lt;br /&gt;}&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Con esto ya tendríamos el  MovieClip "clip" arrastrable.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Este mismo código lo podriamos haber puesto dentro de una clase AS3: &lt;/span&gt;&lt;/p&gt; &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;package{&lt;br /&gt;   import flash.display.*&lt;br /&gt;   import flash.events.*;&lt;br /&gt;   //————————————&lt;br /&gt;   public class Drag extends MovieClip{       &lt;br /&gt;       public var clip:MovieClip = new MovieClip();&lt;br /&gt;       //————————————&lt;br /&gt;       public function Drag(queClip){&lt;br /&gt;           clip = queClip&lt;br /&gt;           clip.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);&lt;br /&gt;           clip.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);&lt;br /&gt;       }&lt;br /&gt;       //————————————       &lt;br /&gt;       private function onMouseDown(e:Event):void{&lt;br /&gt;           clip.startDrag()&lt;br /&gt;       }&lt;br /&gt;       //————————————       &lt;br /&gt;       private function onMouseUp(e:Event):void{&lt;br /&gt;           clip.stopDrag();&lt;br /&gt;       } &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:85%;"&gt;    }&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt; Al crear el contructor de la clase deberemos pasarle el MovieClip a arrastar como parámentro: &lt;/span&gt;&lt;/p&gt;    &lt;span style="font-size:85%;"&gt;import Drag&lt;br /&gt;var drag:Drag = new Drag(clip);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-6217233334227937803?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/6217233334227937803/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=6217233334227937803' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/6217233334227937803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/6217233334227937803'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/drag-and-drop-en-action-script-3.html' title='Drag and Drop en Action Script 3'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-2460450743741085310</id><published>2007-04-12T17:08:00.000-07:00</published><updated>2007-04-12T17:18:14.040-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swf'/><category scheme='http://www.blogger.com/atom/ns#' term='salvapantallas'/><category scheme='http://www.blogger.com/atom/ns#' term='control'/><category scheme='http://www.blogger.com/atom/ns#' term='action script'/><category scheme='http://www.blogger.com/atom/ns#' term='efecto flash'/><category scheme='http://www.blogger.com/atom/ns#' term='mouse'/><category scheme='http://www.blogger.com/atom/ns#' term='codigo'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><title type='text'>Controlar inactividad en una pelicula SWF</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Este sencllo código nos puede servir para detectar un&lt;strong&gt; tiempo de inactividad por parte del usuario&lt;/strong&gt; dentro de nuestra pelicula. Para por ejemplo, si el usuario está más de un minuto sin tocar el mouse, la pelicula salte directamente a un fotograma con una animación, y cuando el usuario vuelva a tocar el mouse la pelicula vuelva a su estado normal. Algo como un salvapantallas.&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Primero de todo crearemos una &lt;strong&gt;pelicula flash con dos fotogramas&lt;/strong&gt;. En el primero colocaremos un &lt;strong&gt;MovieClip &lt;/strong&gt;que contendrá &lt;strong&gt;toda la pelicula&lt;/strong&gt;, y en el segundo colocaremos otro &lt;strong&gt;MovieClip &lt;/strong&gt;que contendrá la &lt;strong&gt;animación de salvapantallas&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:85%;"&gt;En las acciones del &lt;strong&gt;primer fotograma&lt;/strong&gt; colocaremos el código que controlará si hay actividad por parte del usuario, en el momento en el que pase un cierto tiempo en el que no la hay, mandará la pelicula al &lt;strong&gt;segundo fotograma&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt; &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;var posicionMouse:Number = _xmouse + _ymouse;&lt;br /&gt;intervalo = setInterval(this, "controlaPosicion", 2000);&lt;br /&gt;stop();&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;La variable posicionMouse guardará el valor de la posición del mouse en pantalla, y crearemos un intervalo que cada 2 segundos controle dicha posición.&lt;/span&gt;&lt;/p&gt;  &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;function controlaPosicion():Void&lt;br /&gt;{&lt;br /&gt;   if (posicionMouse != _xmouse + _ymouse) {&lt;br /&gt;   }&lt;br /&gt;}&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Esta función &lt;strong&gt;compara &lt;/strong&gt;el valor de la &lt;strong&gt;variable posicionMouse&lt;/strong&gt; (guardada hace 2 segundos) con el valor &lt;strong&gt;actual del mouse&lt;/strong&gt;, si el valor es &lt;strong&gt;diferente &lt;/strong&gt;con lo quiere decir el el usuario está &lt;strong&gt;activo&lt;/strong&gt;, entonces ejecutaremos las siguientes acciones:&lt;/span&gt;&lt;/p&gt;  &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;clearInterval(intervalo2);&lt;br /&gt;       intervalo2 = setInterval(this, "salvapantallas", 18000);&lt;br /&gt;       gotoAndStop(1);&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Creamos un &lt;strong&gt;segundo intervalo&lt;/strong&gt;, en este caso de &lt;strong&gt;18 segundos&lt;/strong&gt; (o el tiempo que queramos para que salte nuestro salvapantallas). Y colocamos un gotoAndStop que mantenga la pelicula en el primer fotograma.&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;¿Por qué eliminamos la referencia al intervalo antes de crearlo?&lt;/strong&gt; porque de esta manera &lt;strong&gt;reseteamos el intervalo&lt;/strong&gt; cada vez que ejecutamos la acción. Es decir: si cada &lt;strong&gt;2 segundos&lt;/strong&gt; comparamos los valores del mouse y son diferentes, reiniciamos el segundo intervalo haciendo que &lt;strong&gt;vuelva a empezar la cuenta desde cero&lt;/strong&gt; con lo que &lt;strong&gt;nunca llegará a los 18 segundos y no ejecutará la acción "salvapantallas"&lt;/strong&gt;, En cambio en cuanto los valores del mouse coincidan por que no ha habido movimiento del ratón por parte del usuario este reinicio del intervalo no se ejecutará con lo que este si que llegará a los 18 segundos ejecutando la acción "salvapantallas".&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Como última acción dentro de esta función colocaremos fuera del condicional, para que se ejecute siempre cada 2 segundos, una línea de código que nos actualice la variable de la posición del mouse.&lt;/span&gt;&lt;/p&gt; &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;posicionMouse = _xmouse + _ymouse;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;La acción "salvapantallas" lo que hará es enviar la pelicula al segundo fotograma.&lt;/span&gt;&lt;/p&gt;  &lt;table class="codigo"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;function salvapantallas():Void&lt;br /&gt;{&lt;br /&gt;   gotoAndStop(2);&lt;br /&gt;}&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Aun estando en el segundo fotograma el intervalo que comprueba el movimiento del mouse continua ejecutandose cada 2 segundos, con lo que al primer movimiento volverá a colocar la pelicula en el primer fotograma.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Este sería el código completo, que hiría en el primer fotograma:&lt;/span&gt;&lt;/p&gt;    &lt;span style="font-size:85%;"&gt;function controlaPosicion():Void&lt;br /&gt;{&lt;br /&gt;   if (posicionMouse != _xmouse + _ymouse) {&lt;br /&gt;       clearInterval(intervalo2);&lt;br /&gt;       intervalo2 = setInterval(this, "salvapantallas", 18000);&lt;br /&gt;       gotoAndStop(1);&lt;br /&gt;   }&lt;br /&gt;   posicionMouse = _xmouse + _ymouse;&lt;br /&gt;}&lt;br /&gt;//———————————-&lt;br /&gt;function salvapantallas():Void&lt;br /&gt;{&lt;br /&gt;   gotoAndStop(2);&lt;br /&gt;}&lt;br /&gt;//—————————-&lt;br /&gt;var posicionMouse:Number = _xmouse + _ymouse;&lt;br /&gt;intervalo = setInterval(this, "controlaPosicion", 2000);&lt;br /&gt;stop();&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-2460450743741085310?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/2460450743741085310/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=2460450743741085310' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/2460450743741085310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/2460450743741085310'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/controlar-inactividad-en-una-pelicula.html' title='Controlar inactividad en una pelicula SWF'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-5588213014371054148</id><published>2007-04-12T16:29:00.000-07:00</published><updated>2007-04-12T16:44:38.479-07:00</updated><title type='text'>Enlaces de texto en Flash al estilo HTML</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;En flash podemos colocar textos en formato HTML con enlaces a otras páginas, pero tenemos el problema de que estos links no quedan resaltados en color azul y subrayados como pasa en un típico HTML.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Por ejemplo, este SWF contiene un campo de texto con varios enlaces, pero no se diferencian del resto del texto:&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;div class="post-content"&gt;&lt;div style="text-align: justify;"&gt;&lt;embed src="http://www.cristalab.zguillez.com/css/01/html.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="110" width="290"&gt;&lt;/embed&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Esto lo podemos solucionar aplicando un poco de CSS al texto HTML.&lt;br /&gt;El código para crear el estilo CSS sería este:&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-7"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;TextField&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;StyleSheet&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; css:StyleSheet = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; StyleSheet&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;css.&lt;span style="color: rgb(0, 102, 204);"&gt;parseCSS&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"a{color:#0000FF; text-decoration:underline;}"&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Ahora al crear un texto HTML tendremos que aplicarle el CSS, de esta manera aplicamos a todas las etiquetas &lt;a&gt; el color azul y el subrayado:&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-8"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;texto.&lt;span style="color: rgb(0, 102, 204);"&gt;html&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;true&lt;/span&gt;;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;texto.&lt;span style="color: rgb(0, 102, 0);"&gt;styleSheet&lt;/span&gt; = css;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;texto.&lt;span style="color: rgb(0, 102, 204);"&gt;htmlText&lt;/span&gt; = &lt;span style="color: rgb(255, 0, 0);"&gt;"&lt;a href="'http://www.cristalab.com'"&gt;Troiae&lt;/a&gt; qui primus ab oris Italiam, fato profugus, Laviniaque venit litora, multum ille et terris iactatus et alto vi superum saevae &lt;a href="'http://www.cristalab.com'"&gt;memorem&lt;/a&gt; Iunonis ob iram; multa quoque et bello passus, dum conderet urbem, inferretque deos Latio, genus unde Latinum, &lt;a href="'http://www.cristalab.com'"&gt;Albanique&lt;/a&gt; patres, atque altae moenia Romae."&lt;/span&gt;; &lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;El resultado sería este:&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;embed src="http://www.cristalab.zguillez.com/css/01/css.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="110" width="290"&gt;&lt;/embed&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;Para mejorar este código y hacerlo más reutilizable, podemos meterlo a través de prototype a la clase TextField:&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-9"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;&lt;a&gt;TextField&lt;/a&gt;&lt;/span&gt;&lt;a&gt;.&lt;span style="color: rgb(0, 102, 204);"&gt;prototype&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;htmlcss&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;txt:&lt;span style="color: rgb(0, 102, 204);"&gt;String&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;&lt;a&gt;{&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;TextField&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;StyleSheet&lt;/span&gt;;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; css:StyleSheet = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; StyleSheet&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   css.&lt;span style="color: rgb(0, 102, 204);"&gt;parseCSS&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"a{color:#0000FF; text-decoration:underline;}"&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 204);"&gt;html&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;true&lt;/span&gt;;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;styleSheet&lt;/span&gt; = css;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 204);"&gt;htmlText&lt;/span&gt; = txt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;&lt;a&gt;}&lt;/a&gt;&lt;/span&gt;&lt;a&gt;; &lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;De esta manera TODOS los campos de texto tendrán el comportamiento htmlcss que colocará el estilo al texto.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a&gt;Para añadir el texto al campo de texto utilizaremos esta nueva función de la clase:&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-10"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;a&gt;&lt;span style="font-size:85%;"&gt;texto.&lt;span style="color: rgb(0, 102, 0);"&gt;htmlcss&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"&lt;a href="'http://www.cristalab.com'"&gt;Troiae&lt;/a&gt; qui primus ab oris Italiam, fato profugus, Laviniaque venit litora, multum ille et terris iactatus et alto vi superum saevae &lt;a href="'http://www.cristalab.com'"&gt;memorem&lt;/a&gt; Iunonis ob iram; multa quoque et bello passus, dum conderet urbem, inferretque deos Latio, genus unde Latinum, &lt;a href="'http://www.cristalab.com'"&gt;Albanique&lt;/a&gt; patres, atque altae moenia Romae."&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;/a&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-5588213014371054148?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/5588213014371054148/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=5588213014371054148' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5588213014371054148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5588213014371054148'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/enlaces-de-texto-en-flash-al-estilo.html' title='Enlaces de texto en Flash al estilo HTML'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-5771564750649812133</id><published>2007-04-12T15:42:00.000-07:00</published><updated>2007-04-12T16:20:41.606-07:00</updated><title type='text'>Sistema de transiciones entre fotos</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Esta clase, permite generar de forma fácil un sistema de transiciones de fotografias. Este es un ejemplo:&lt;br /&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="220" width="420"&gt;&lt;br /&gt;&lt;br /&gt;&lt;param name="movie" value="http://www.cristalab.zguillez.com/ImgTransition/ImgTransition.swf"&gt; &lt;param name="quality" value="high"&gt; &lt;embed src="http://www.cristalab.zguillez.com/ImgTransition/ImgTransition.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="220" width="420"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;/span&gt; &lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Su funcionamiento es muy simple. La clase genera dos MovieClips contenedores en los que coloca la fotografía actual y la potografía posterior, y carga también un SWF que contiene la animación de la mascara. Esta mascara la aplica al MovieClip contenedor haciendo así es efecto de transicion de una foto a la otra.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Este sistema nos permite generar las animaciones de transición como archivos SWF externos e independientes, pudiendo tener una libreria de transiciones y eligiendo la que queramos para cada transición de fotos.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Un ejemplo de animación de transición sería este:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="200" width="300"&gt;&lt;br /&gt;&lt;param name="movie" value="http://www.cristalab.zguillez.com/ImgTransition/mascara0.swf"&gt; &lt;param name="quality" value="high"&gt; &lt;embed src="http://www.cristalab.zguillez.com/ImgTransition/mascara0.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="200" width="300"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;La clase:&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-1"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; mx.&lt;span style="color: rgb(0, 102, 0);"&gt;utils&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;Delegate&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;class&lt;/span&gt; img.&lt;span style="color: rgb(0, 102, 0);"&gt;ImgTransition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; ruta:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; clip:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; foto:&lt;span style="color: rgb(0, 102, 204);"&gt;String&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; foto_up:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; foto_down:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; mascara:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; intervalo:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; ejecucion:&lt;span style="color: rgb(0, 102, 204);"&gt;Boolean&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//----------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; ImgTransition&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qRuta:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;, qFoto:&lt;span style="color: rgb(0, 102, 204);"&gt;String&lt;/span&gt;, qX, qY&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        ruta = qRuta;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        clip = ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"ImgTransition"&lt;/span&gt;, ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_down = clip.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto_down"&lt;/span&gt;, clip.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_up = clip.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto_up"&lt;/span&gt;, clip.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        mascara = clip.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"mascara"&lt;/span&gt;, clip.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_up.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"mc"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_down.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"mc"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        mascara.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"mc"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto = qFoto;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 102, 204);"&gt;loadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qFoto, foto_up.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 102, 204);"&gt;loadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qFoto, foto_down.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        clip.&lt;span style="color: rgb(0, 102, 204);"&gt;_x&lt;/span&gt; = qX;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        clip.&lt;span style="color: rgb(0, 102, 204);"&gt;_y&lt;/span&gt; = qY;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        ejecucion = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;false&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//----------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; transition&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qFoto:&lt;span style="color: rgb(0, 102, 204);"&gt;String&lt;/span&gt;, qMascara:&lt;span style="color: rgb(0, 102, 204);"&gt;String&lt;/span&gt;, qDuracion:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;!ejecucion&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;            &lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qFoto != foto&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;            &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                foto = qFoto;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; precarga:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClipLoader&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClipLoader&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; listener:&lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                listener.&lt;span style="color: rgb(0, 102, 204);"&gt;onLoadInit&lt;/span&gt; = Delegate.&lt;span style="color: rgb(0, 102, 0);"&gt;create&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, xnLoadInit1&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                precarga.&lt;span style="color: rgb(0, 102, 204);"&gt;addListener&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;listener&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                precarga.&lt;span style="color: rgb(0, 102, 204);"&gt;loadClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qFoto, foto_up.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;swf&lt;/span&gt; = qMascara;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;duracion&lt;/span&gt; = qDuracion;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;                foto_up.&lt;span style="color: rgb(0, 102, 204);"&gt;_visible&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;false&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;            &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; xnLoadInit1&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; precarga2:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClipLoader&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;MovieClipLoader&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; listener2:&lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        listener2.&lt;span style="color: rgb(0, 102, 204);"&gt;onLoadInit&lt;/span&gt; = Delegate.&lt;span style="color: rgb(0, 102, 0);"&gt;create&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, xnLoadInit2&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        precarga2.&lt;span style="color: rgb(0, 102, 204);"&gt;addListener&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;listener2&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        precarga2.&lt;span style="color: rgb(0, 102, 204);"&gt;loadClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;swf&lt;/span&gt;, mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; xnLoadInit2&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_up.&lt;span style="color: rgb(0, 102, 204);"&gt;setMask&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;mascara&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_up.&lt;span style="color: rgb(0, 102, 204);"&gt;_visible&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        intervalo = &lt;span style="color: rgb(0, 102, 204);"&gt;setInterval&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"endTransition"&lt;/span&gt;, mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;duracion&lt;/span&gt; * &lt;span style="color: rgb(128, 0, 0);"&gt;1000&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        ejecucion = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//----------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; endTransition&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 102, 204);"&gt;loadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;foto, foto_down.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        foto_up.&lt;span style="color: rgb(0, 102, 204);"&gt;setMask&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;null&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 102, 204);"&gt;unloadMovie&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;mascara.&lt;span style="color: rgb(0, 102, 0);"&gt;mc&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="color: rgb(0, 102, 204);"&gt;clearInterval&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;intervalo&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;        ejecucion = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;false&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//----------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Su uso en el .fla es este:&lt;/span&gt;&lt;/p&gt; &lt;div id="codigo"&gt; &lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-2"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; img.&lt;span style="color: rgb(0, 102, 0);"&gt;ImgTransition&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; foto:ImgTransition = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; ImgTransition&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"foto1.jpg"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;10&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;10&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;bot1.&lt;span style="color: rgb(0, 102, 204);"&gt;onRelease&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    foto.&lt;span style="color: rgb(0, 102, 0);"&gt;transition&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto1.jpg"&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"mascara1.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;5&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;bot2.&lt;span style="color: rgb(0, 102, 204);"&gt;onRelease&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    foto.&lt;span style="color: rgb(0, 102, 0);"&gt;transition&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto2.jpg"&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"mascara2.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;3&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;bot3.&lt;span style="color: rgb(0, 102, 204);"&gt;onRelease&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    foto.&lt;span style="color: rgb(0, 102, 0);"&gt;transition&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto3.jpg"&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"mascara3.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;2&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;bot4.&lt;span style="color: rgb(0, 102, 204);"&gt;onRelease&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    foto.&lt;span style="color: rgb(0, 102, 0);"&gt;transition&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto4.jpg"&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"mascara4.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;3&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;bot5.&lt;span style="color: rgb(0, 102, 204);"&gt;onRelease&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;    foto.&lt;span style="color: rgb(0, 102, 0);"&gt;transition&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"foto5.jpg"&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;"mascara5.swf"&lt;/span&gt;, &lt;span style="color: rgb(128, 0, 0);"&gt;2&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li style="font-family: 'Courier New',Courier,monospace; font-style: normal; color: rgb(58, 106, 139); font-weight: bold;"&gt; &lt;div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;; &lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://www.cristalab.zguillez.com/ImgTransition/"&gt;Archivos&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-5771564750649812133?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/5771564750649812133/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=5771564750649812133' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5771564750649812133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5771564750649812133'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/sistema-de-transiciones-entre-fotos.html' title='Sistema de transiciones entre fotos'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-5356412394102540722</id><published>2007-04-11T19:35:00.000-07:00</published><updated>2007-04-12T15:42:11.559-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dibujo'/><category scheme='http://www.blogger.com/atom/ns#' term='action script'/><category scheme='http://www.blogger.com/atom/ns#' term='efecto flash'/><category scheme='http://www.blogger.com/atom/ns#' term='firma'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><category scheme='http://www.blogger.com/atom/ns#' term='linea'/><title type='text'>Efecto de dibujo de línea con ActionScript -</title><content type='html'>&lt;span style="font-size:85%;"&gt;Este es un sistema muy sencillo para redibujar un trazado de manera que parezca que se está dibujando runtime.&lt;br /&gt;&lt;br /&gt;El primer paso será crear el trazado completo que queremos dibujar:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Se0Ym99wL-0/Rh2eBuzbQKI/AAAAAAAAAAM/JOOK_ZlS5PU/s1600-h/img00.jpg"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_Se0Ym99wL-0/Rh2eBuzbQKI/AAAAAAAAAAM/JOOK_ZlS5PU/s320/img00.jpg" alt="" id="BLOGGER_PHOTO_ID_5052368109560348834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Luego utilizaremos este trazado como guía para un MovieClip, utilizando como punto inicial y final de la interpolación el punto inicial y final del trazado: Ahora mediante código haremos que este MovieClip mientras se desplaza por la guía vaya redibujando el trazado. Para eso crearemos una clase:&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-1"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;class&lt;/span&gt; redibujaGuia&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;En el constructor de la clase pasaremos como parámentros la ruta de la instancia de clase y el MovieClip que utilizaremos&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-2"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; redibujaGuia&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qRuta:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;, qGlider:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   ruta = qRuta;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   glider = qGlider;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//glider._visible = false;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; num:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt; = ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   linea = ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"line"&lt;/span&gt;+num, num&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;, 0x000000, &lt;span style="color: rgb(128, 0, 0);"&gt;100&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Tambien creamos un MovieClip vacio donde dibujaremos el trazado, y creamos un lineStyle por defecto.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Crearemos tambien una función para poder editar el estilo del trazado:&lt;/span&gt;&lt;/p&gt;&lt;div style="font-weight: bold;" class="syntax_hilite"&gt; &lt;div id="actionscript-3"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qGrosor:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;, qColor:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;, qAlfa:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   grosor = qGrosor;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;color&lt;/span&gt; = qColor;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   alfa = qAlfa;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;grosor, &lt;span style="color: rgb(0, 102, 204);"&gt;color&lt;/span&gt;, alfa&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   linea.&lt;span style="color: rgb(0, 102, 204);"&gt;moveTo&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_x&lt;/span&gt;, glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:85%;"&gt;Por ultimo crearemos una función que genere un onEnterFrame que dibuje una línea cada vez que el MovieClip se mueva sobre la guía:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-weight: bold;" class="syntax_hilite"&gt; &lt;div id="actionscript-4"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;start&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   glider.&lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt; = Delegate.&lt;span style="color: rgb(0, 102, 0);"&gt;create&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, &lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   act = &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;x:glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_x&lt;/span&gt;, y:glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineTo&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;act.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt;, act.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;prev &amp;&amp;amp; act.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt; == prev.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt; &amp;&amp;amp; act.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt; == prev.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(0, 102, 204);"&gt;delete&lt;/span&gt; glider.&lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt; &lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      prev = act;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139);font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:85%;"&gt;Con lo que la clase completa quedaría asi:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-5"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; mx.&lt;span style="color: rgb(0, 102, 0);"&gt;utils&lt;/span&gt;.&lt;span style="color: rgb(0, 102, 0);"&gt;Delegate&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;class&lt;/span&gt; redibujaGuia&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; grosor:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;color&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; alfa:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; ruta:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; glider:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; linea:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; act:&lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; prev:&lt;span style="color: rgb(0, 102, 204);"&gt;Object&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; redibujaGuia&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qRuta:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;, qGlider:&lt;span style="color: rgb(0, 102, 204);"&gt;MovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      ruta = qRuta;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      glider = qGlider;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//glider._visible = false;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; num:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt; = ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;getNextHighestDepth&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      linea = ruta.&lt;span style="color: rgb(0, 102, 204);"&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"line"&lt;/span&gt;+num, num&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;1&lt;/span&gt;, 0x000000, &lt;span style="color: rgb(128, 0, 0);"&gt;100&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;qGrosor:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;, qColor:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;, qAlfa:&lt;span style="color: rgb(0, 102, 204);"&gt;Number&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      grosor = qGrosor;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(0, 102, 204);"&gt;color&lt;/span&gt; = qColor;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      alfa = qAlfa;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;grosor, &lt;span style="color: rgb(0, 102, 204);"&gt;color&lt;/span&gt;, alfa&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      linea.&lt;span style="color: rgb(0, 102, 204);"&gt;moveTo&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_x&lt;/span&gt;, glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;start&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      glider.&lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt; = Delegate.&lt;span style="color: rgb(0, 102, 0);"&gt;create&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, &lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(0, 102, 204);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;:&lt;span style="color: rgb(0, 102, 204);"&gt;Void&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      act = &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;x:glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_x&lt;/span&gt;, y:glider.&lt;span style="color: rgb(0, 102, 204);"&gt;_y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      linea.&lt;span style="color: rgb(0, 102, 204);"&gt;lineTo&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;act.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt;, act.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;prev &amp;&amp;amp; act.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt; == prev.&lt;span style="color: rgb(0, 102, 0);"&gt;x&lt;/span&gt; &amp;&amp;amp; act.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt; == prev.&lt;span style="color: rgb(0, 102, 0);"&gt;y&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;         &lt;span style="color: rgb(0, 102, 204);"&gt;delete&lt;/span&gt; glider.&lt;span style="color: rgb(0, 102, 204);"&gt;onEnterFrame&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt; &lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;         prev = act;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;   &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;//---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Para utilizarla (a parte del proceso manula de dibujar la guía y colocar el MovieClip) utilizaremos este código en el fotograma donde empieze la interpolación:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="syntax_hilite"&gt; &lt;div id="actionscript-6"&gt; &lt;div class="actionscript"&gt; &lt;ol&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;import&lt;/span&gt; redibujaGuia;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; linea1:redibujaGuia = &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;new&lt;/span&gt; redibujaGuia&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 204);"&gt;this&lt;/span&gt;, glider1&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;linea1.&lt;span style="color: rgb(0, 102, 204);"&gt;lineStyle&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;2&lt;/span&gt;, 0x000000, &lt;span style="color: rgb(128, 0, 0);"&gt;100&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li  style="font-style: normal; color: rgb(58, 106, 139); font-weight: bold;font-family:'Courier New',Courier,monospace;"&gt; &lt;div  style="font-weight: normal;font-family:'Courier New',Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;linea1.&lt;span style="color: rgb(0, 102, 204);"&gt;start&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt;&lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;span style="font-size:85%;"&gt;Al final el resultado es este&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="80" title="guia"&gt;&lt;br /&gt;  &lt;param name="movie" value="http://www.cristalab.zguillez.com/redibujaGuia/redibujaGuia.swf" /&gt;&lt;br /&gt;  &lt;param name="quality" value="high" /&gt;&lt;br /&gt;  &lt;embed src="http://www.cristalab.zguillez.com/redibujaGuia/redibujaGuia.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="80"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-5356412394102540722?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/5356412394102540722/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=5356412394102540722' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5356412394102540722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/5356412394102540722'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/efecto-de-dibujo-de-lnea-con.html' title='Efecto de dibujo de línea con ActionScript -'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Se0Ym99wL-0/Rh2eBuzbQKI/AAAAAAAAAAM/JOOK_ZlS5PU/s72-c/img00.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538351416700309339.post-643044499777190781</id><published>2007-04-11T14:16:00.000-07:00</published><updated>2007-04-11T15:32:54.790-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='action script'/><category scheme='http://www.blogger.com/atom/ns#' term='Presentación'/><title type='text'>Yoooooooooooo</title><content type='html'>Hola soy Albert, este es un intento de poder publicar algunos ejemplos y/o artículos de algún interés para aquellos que encuentran en el Flash y su Action Script una fascinación...  asi que a todos los flasheros, les invito a visitar este nuevo espacio.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3538351416700309339-643044499777190781?l=almatees.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almatees.blogspot.com/feeds/643044499777190781/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3538351416700309339&amp;postID=643044499777190781' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/643044499777190781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538351416700309339/posts/default/643044499777190781'/><link rel='alternate' type='text/html' href='http://almatees.blogspot.com/2007/04/yoooooooooooo.html' title='Yoooooooooooo'/><author><name>Albert</name><uri>http://www.blogger.com/profile/11453023927761489900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
