메뉴 건너뛰기

XE : Xpress Engine




웹디자인 강의


35번째 강의입니다.
탄성력 있는 버튼 만들기 입니다.

  
무비클립에 줄 액션
---------------------------
onClipEvent (load) {
        f_xscale = 100;
        f_yscale = 100;
        f_x = 0;
        f_y = 0;
        f_mul = 0.7;
        f_ratio = 0.3;
    this._alpha=95;
}
onClipEvent (enterFrame) {
        f_x = f_x*f_mul+(f_xscale-this._xscale)*f_ratio;
        f_y = f_y*f_mul+(f_yscale-this._yscale)*f_ratio;
        this._xscale += f_x;
        this._yscale += f_y;
}

버튼에 줄 액션
---------------------
on (rollOver) {
        this.swapDepths(3);
        f_xscale *= 2;
        f_yscale *= 2;
}
on (rollOut) {
        this.swapDepths(1);
        f_xscale = 100;
        f_yscale = 100;
}

--------------------------------------------------
P.S 제 홈페이지에 오시면 포토샵,드림위버,php 강의도 진행중입니다.
http://singsinghe.co.kr
광고성 글이라서 죄송합니다. ㅠ_ㅠ