Trailer : Adobe flash cs4 tutorial 3D Doors
Belajarlah untuk membuat Pintu 3D di adobe flash cs4 menggunakan kelas tween dalam action script 3. Kode Timeline
import fl.transitions.easing.*;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
var at:Array = new Array();
at.push(new Tween(door1,'rotationY',Strong.easeIn,0,90,2,true));
at.push(new Tween(door2,'rotationY',Strong.easeIn,0,90,2,true));
at[0].addEventListener(TweenEvent.MOTION_FINISH,goin);
function goin(e:Event){
at.push(new Tween(door1,'z',Strong.easeIn,0,-300,2,true));
at.push(new Tween(door2,'z',Strong.easeIn,0,-300,2,true));
at.push(new Tween(wall,'z',Strong.easeIn,0,-300,2,true));
}
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
var at:Array = new Array();
at.push(new Tween(door1,'rotationY',Strong.easeIn,0,90,2,true));
at.push(new Tween(door2,'rotationY',Strong.easeIn,0,90,2,true));
at[0].addEventListener(TweenEvent.MOTION_FINISH,goin);
function goin(e:Event){
at.push(new Tween(door1,'z',Strong.easeIn,0,-300,2,true));
at.push(new Tween(door2,'z',Strong.easeIn,0,-300,2,true));
at.push(new Tween(wall,'z',Strong.easeIn,0,-300,2,true));
}