'잡동사니'에 해당되는 글 2건

  1. 2008/03/10 플래시 딜레이

stop();
this._alpha=0;
z = 1;

function wait() {
 trace("1");
    clearInterval(myTimer);
 play();
}
function wait2() {
 trace("2");
    clearInterval(myTimer2);
 alpha1();
}
function wait3() {
 trace("3");
    clearInterval(myTimer3);
 z=2;
 alpha2();
}

function alpha1() {
 if (z==1){
     this.onEnterFrame=function(){
   this._alpha += (100-this._alpha)*0.08
  }
 }
}

function alpha2() {
 if (z==2){
     this.onEnterFrame=function(){
   this._alpha -= (this._alpha)*0.08
  }
 }
}

myTimer = setInterval(wait, 5000);
myTimer2 = setInterval(wait2, 500);
myTimer3 = setInterval(wait3, 4000);


-

0.5초에 이미지 fade in

4초에 이미지 fade out

5초에 nextframe


일단 급한대로 대충작성..

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by Npiza

댓글을 달아 주세요