메뉴 건너뛰기

XE : Xpress Engine




웹디자인 강의

water4.jpg

(예제 액션 적용 무비)

(빨간 소스 적용 무비)
 

1프레임 액션

stop();
var scale =5;
var scale1 =4;
 
m1.onRollOver = function() {
        this.onEnterFrame = function() {
                if(this._xscale <= 500) {
                        this._xscale += scale*2;
                        this._yscale += scale*2;
                        _root.view1._xscale +=scale1*2;
                        _root.view1._yscale +=scale1*2;
                        }
                for(i=1; i<25; i++){
                        if(this.hitTest(_root["a"+i]) && _root["a"+i]._xscale >0){
                                _root["a"+i]._xscale -= 2;
                                _root["a"+i]._yscale -= 2;
                        }
                }
        }
}
m1.onRollOut = function() {
        this.onEnterFrame = function() {
                if(this._xscale > 100) {
                        this._xscale -= scale;
                        this._yscale -= scale;
                        _root.view1._xscale -=scale1;
                        _root.view1._yscale -=scale1;
                }
                for(i=1; i<30; i++){
                        if(_root["a"+i]._xscale < 100){
                                _root["a"+i]._xscale += 2;
                                _root["a"+i]._yscale += 2;
                        }
                }
        }
};
m2.onRollOver = function() {
        this.onEnterFrame = function() {
                if(this._xscale <= 500) {
            
// if(this._xscale <= 800)
                        this._xscale += scale*2;
                        this._yscale += scale*2;
                        _root.view2._xscale +=scale1*2;
                        _root.view2._yscale +=scale1*2;                 
                }
                for(i=1; i<25; i++){
                        if(this.hitTest(_root["b"+i]) && _root["b"+i]._xscale >0){
                                _root["b"+i]._xscale -= 2;
                                _root["b"+i]._yscale -= 2;
                        }
                }
        }
}
m2.onRollOut = function() {
        this.onEnterFrame = function() {
                if(this._xscale > 100) {
            
// if(this._xscale > 200)
                        this._xscale -= scale;
                        this._yscale -= scale;
                        _root.view2._xscale -=scale1;
                        _root.view2._yscale -=scale1;                   
                }
                for(i=1; i<25; i++){
                        if(_root["b"+i]._xscale <100){
                    
//  if(_root["b"+i]._xscale <200)
                                _root["b"+i]._xscale += 2;
                                _root["b"+i]._yscale += 2;
                        }
                }
        }
};
m3.onRollOver = function() {
        this.onEnterFrame = function() {
                if(this._xscale <= 500) {
             
 // if(this._xscale <= 600)
                        this._xscale += scale*2;
                        this._yscale += scale*2;
                        _root.view3._xscale +=scale1*2;
                        _root.view3._yscale +=scale1*2;                 
                }
                for(i=1; i<25; i++){
                        if(this.hitTest(_root["c"+i]) && _root["c"+i]._xscale >0){
                                _root["c"+i]._xscale -= 2;
                                _root["c"+i]._yscale -= 2;
                        }
                }
        }
}
m3.onRollOut = function() {
        this.onEnterFrame = function() {
                if(this._xscale > 100) {
                        this._xscale -= scale;
                        this._yscale -= scale;
                        _root.view3._xscale -=scale1;
                        _root.view3._yscale -=scale1;                   
                }
                for(i=1; i<25; i++){
                        if(_root["c"+i]._xscale <100){
                    
 // if(_root["c"+i]._xscale <50)
                                _root["c"+i]._xscale += 2;
                                _root["c"+i]._yscale += 2;
                        }
                }
        }
};

번호 제목 글쓴이 날짜 조회 수
공지 공지 강좌를 올리기전 공지사항을 읽어주세요 [12] Eccen 2004.12.15 48031
275 몰캉몰캉한 구름만들기'0' [30] file 초롱 2003.08.04 17378
274 간단한 테이블 만들기 [9] file 바람에 맞겨 페류 2003.03.22 17403
273 플래시로 Show - Hide 되는 엽기 공지사항 만들기;; [8] 유군-_-)/ 2002.02.25 17445
272 시원한 물살이 휘감기는 효과 [6] file 포샵럽 2005.08.08 17455
271 올록볼록 투명 글씨, 버튼 [14] irene 2002.12.02 17460
270 분명히 어디선가 본 효과~!^^ [11] file 쿠키 2003.11.25 17464
269 우물맨의 여덟번째 *사탕같은 버튼 만들기 [11] file 우물맨 2003.04.11 17519
268 (MoonBlood)유리?투명 플라스틱??.. 느낌의 원형버튼 [11] file MoonBoold 2005.04.07 17527
267 비오는 날 창문 연출하기^^;(허접강좌) [25] file 이영민 2004.02.13 17529
266 필름과 같은 효과만들기; file 혀니ⓥ 2005.12.27 17557
265 (3)브러쉬로 '눈오는 밤' 만들기![응용작수정] [19] file Smileru 2003.12.18 17561
264 [강의] Hero- 독특한 테두리 만들기 [13] file 유제성 2003.08.30 17571
263 [수정]파스텔톤의 따뜻한 느낌의 배경. [10] file hozz호찌 2003.04.13 17573
262 이미지 닉 간단하게 만들어보자!!! [14] file 태민닷컴 2004.11.10 17595
261 불에 태운 듯한 사진 만들기 [24] file 오승민 2002.10.24 17598
260 가속도붙은 무비클립이 따라다니는 메뉴 ? [17] file flashman 2004.02.19 17602
259 [5.0] 가속도 효과 내 보기 [7] file 세죠위그이 2003.06.06 17648
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
257 마스크를 이용한 일러스트 그리기...;; [13] file misTsion 2004.05.10 17674
256 일러스트를 이용한 아이콘 만들기 4편 - 자동차 [12] file caramelkiss 2004.01.05 17680