메뉴 건너뛰기

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
231 플래쉬에 마우스를 갔다댔을 시 자신이 원하는 마우스이미지로 바꾸기; [9] GoToHeaven 2003.05.27 12911
230 초를 켜고 명상을 해봐요 [1] [6] file oracleRider 2003.05.28 8467
229 필름을 클릭하면 사진이 찰칵! [17] file 여어자 2003.05.29 34387
228 가속도 운동을 이용한 마우스 따라다니는 오브젝트.. [6] file 세나^.^ 2003.05.30 9804
227 플래시로 브러쉬 툴처럼 그림그리는 스크립트.. [5] 세나^.^ 2003.06.03 11962
226 초를켜고 명상을 해봐요 [2] [6] file oracleRider 2003.06.06 13302
225 [5.0] 가속도 효과 내 보기 [7] file 세죠위그이 2003.06.06 17648
224 [초보만-_-;]움직이는 글씨..무비클립으로 [22] file 한쯔 2003.06.27 20035
223 [초보만-_-;]버튼내용 "*.txt" 로 보여주자 [8] file 화이트크로우™ 2003.07.03 13655
222 매트릭스 코드[MX] [29] file 엔젤퀸 2003.07.30 19017
221 ScrollPanel [16] 응? 2003.08.06 14491
220 [ ] 움직이는 메뉴바 [9] file bayoseo 2003.10.01 28551
219 탄성을 가진 투명 물방울 메뉴 [34] file 여어자 2003.10.07 35862
218 물방울 무비 시리즈(1) [15] file 여어자 2003.10.09 18346
217 물방울 무비 시리즈(2) [1] 여어자 2003.10.10 10953
216 물방울 무비 시리즈(3) [5] file 여어자 2003.10.10 12102
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
214 Flash MX2004 프로페셔널..에 관한 간략한 새로운기능(이미지 없음..;) [11] 세나^.^ 2003.10.18 8856
213 버튼 만들기 (1) [8] file 응? 2003.10.19 15751
212 플래시에서 물방울 그리는 방법 [10] file 여어자 2003.10.20 21045