메뉴 건너뛰기

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 48027
111 밀뜨의 요상한 플래쉬메뉴 만들기 2탄 !! [11] Millth 2004.02.18 27721
110 밀뜨의 요상한 플래쉬메뉴 만들기 1탄 !! [16] Millth 2004.02.18 23913
109 동그라미에서 글자로!!(쉬움) [11] file 권명진 2004.02.14 11840
108 간단하게 플래시 검색엔진 만들기 [27] aizman 2004.01.13 19838
107 _root 영역 [6] file 짚스 2004.01.12 5693
106 [입문]플래쉬의 이해 [7] file 황남운 2004.01.07 7501
105 하이얀 눈송이를 웹에 날려 볼까요? [24] file 여어자 2003.12.24 24315
104 초간단 허덥 작품 #1 [8] file 나보기여 2003.12.21 9906
103 버튼 만들기 (2) [6] file Win'X' 2003.10.26 21382
102 웹화면에 직접 글씨를 쓰는듯한..[B] [21] file 여어자 2003.10.21 25345
101 웹화면에 직접 글씨를 쓰는듯한..[A] [12] file 여어자 2003.10.21 20807
100 플래시에서 물방울 그리는 방법 [10] file 여어자 2003.10.20 21045
99 버튼 만들기 (1) [8] file 응? 2003.10.19 15751
98 Flash MX2004 프로페셔널..에 관한 간략한 새로운기능(이미지 없음..;) [11] 세나^.^ 2003.10.18 8856
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
96 물방울 무비 시리즈(3) [5] file 여어자 2003.10.10 12102
95 물방울 무비 시리즈(2) [1] 여어자 2003.10.10 10953
94 물방울 무비 시리즈(1) [15] file 여어자 2003.10.09 18346
93 탄성을 가진 투명 물방울 메뉴 [34] file 여어자 2003.10.07 35862
92 [ ] 움직이는 메뉴바 [9] file bayoseo 2003.10.01 28551