메뉴 건너뛰기

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
111 동그라미에서 글자로!!(쉬움) [11] file 권명진 2004.02.14 11840
110 [동영상]퍼져나가는 동그라미 [1] 이희덕 2002.09.24 11891
109 [왕초보버젼]플래쉬 폰트 깔끔하게 처리하기 [14] 인묘정 2002.08.15 11949
108 플래시로 브러쉬 툴처럼 그림그리는 스크립트.. [5] 세나^.^ 2003.06.03 11962
107 [ SQL ] 플래시 게시판을 만들기 위한 기초 1 [2] file Fc 2004.02.25 11978
106 [초급] 맞물려 돌아가는 Gear 만들기 - 1 file 박승제 2004.04.19 12041
105 [기초]링크걸기.. [13] file 입픙체리냥♬ 2003.02.25 12044
104 [ PHP ] 플래시 게시판을 만들기 위한 기초 3 [5] file Fc 2004.02.25 12076
103 물방울 무비 시리즈(3) [5] file 여어자 2003.10.10 12102
102 만화경을 보는 듯한 효과 [11] gimbob 2003.01.03 12124
101 [동영상]펄펄~ 눈이옵니다. [3] 이희덕 2002.09.24 12289
100 [플래시 MX 동영상 강좌] 2. 태극기 그리기 [18] 서기 2005.05.22 12345
99 예쁜 구슬만들기~~~~~~ [8] 응? 2003.01.07 12360
98 [ 사각셀 : 유기체 ] 오케이케시백 네비게이션 형태 file Fc 2004.02.27 12421
97 [팁]반복할때 끊기지 않는 자연스러운 느낌주기.. [8] Archi* 2002.06.29 12537
96 [기초] 가속도 [6] file DMG™ 2003.05.12 12626
95 praystation effect따라 하기 [8] gimbob 2002.11.24 12726
94 [폭탄강좌] 플래쉬로 캐릭터 따라그리기.허덥 [17] {동준짱} 2002.08.07 12825
93 플래쉬에 마우스를 갔다댔을 시 자신이 원하는 마우스이미지로 바꾸기; [9] GoToHeaven 2003.05.27 12911
92 초를켜고 명상을 해봐요 [2] [6] file oracleRider 2003.06.06 13302