ohh, no me funciona, hace un parpadeo mi pelicula, No tengo que importar un "algo" como las transiciones? Osea, algo así?
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.MovieClip;
_______________________________________________
1.Si le quito el lo del parent y lo pruebo con un trace (funciona bien el frame 1, no hace el parpadeo y si salta):
2. Si le hablito el parent, si parpadea y no salta, me marca este ERROR: S
ymbol `txt_intro`, Later 2 Frame 1, Line 70:1061:
Call to possibly undefined method gotoAndPlay through a reference with static type flash.display:DispalyObjectContainer.
parent.gotoAndPlay(); el punto 1 y 2 con este código;
mov_h.addEventListener(TweenEvent.MOTION_FINISH, finishHandler8);
function finishHandler8(event:TweenEvent):void{
//trace("hola");
parent.gotoAndPlay(2);
}________________________________________________________________
Te pongo el codigo del movie clip animado:
import fl.transitions.*;
import fl.transitions.easing.*;
//
var mov_a:Tween = new Tween(gru, "y", Bounce.easeOut, -45, 58, 5, false);
var mov_b:Tween = new Tween(exp, "alpha", Strong.easeInOut, 0, 100, 6, false);
var mov_c:Tween = new Tween(mas, "alpha", Strong.easeInOut, 0, 100, 6, false);
var mov_d:Tween = new Tween(elg, "x", Regular.easeOut, 1024, 271.2, 5, false);
var mov_e:Tween = new Tween(soli, "alpha", Strong.easeInOut, 0, 100, 30, false);
var mov_f:Tween = new Tween(nue, "x", Regular.easeOut, -189, 421.5, 5, false);
var mov_g:Tween = new Tween(hac, "alpha", Strong.easeInOut, 0, 100, 20, false);
var mov_h:Tween = new Tween(somos, "y", Regular.easeOut, 771, 567.4, 5, false);
//
mov_b.stop();
mov_c.stop();
mov_d.stop();
mov_e.stop();
mov_f.stop();
mov_g.stop();
mov_h.stop();
//
mov_a.addEventListener(TweenEvent.MOTION_FINISH, termino);
function termino(event:TweenEvent):void{
mov_b.start();
}
mov_b.addEventListener(TweenEvent.MOTION_FINISH, finishHandler2);
function finishHandler2(event:TweenEvent):void{
mov_c.start();
}
mov_c.addEventListener(TweenEvent.MOTION_FINISH, finishHandler3);
function finishHandler3(event:TweenEvent):void{
mov_d.start();
}
mov_d.addEventListener(TweenEvent.MOTION_FINISH, finishHandler4);
function finishHandler4(event:TweenEvent):void{
mov_e.start();
}
mov_e.addEventListener(TweenEvent.MOTION_FINISH, finishHandler5);
function finishHandler5(event:TweenEvent):void{
mov_f.start();
}
mov_f.addEventListener(TweenEvent.MOTION_FINISH, finishHandler6);
function finishHandler6(event:TweenEvent):void{
mov_g.start();
}
mov_g.addEventListener(TweenEvent.MOTION_FINISH, finishHandler7);
function finishHandler7(event:TweenEvent):void{
mov_h.start();
}
/*mov_h.addEventListener(TweenEvent.MOTION_FINISH, finishHandler8);
function finishHandler8(event:TweenEvent):void{
//trace("hola");
_parent.gotoAndPlay(2);
}*/
mov_h.addEventListener(TweenEvent.MOTION_FINISH, finishHandler8);
function finishHandler8(event:TweenEvent):void{
//trace("hola");
parent.gotoAndPlay(2);
Que estoy haciendo mal? o que me falta? ya lo abri en cs3 y cs4 y sigue igual.
}