메뉴 건너뛰기

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 플래시를 시작하기 위한 준비 [1] Fc 2005.05.06 7495
110 [플래시 MX 동영상 강좌] 7. 트위닝 옵션 [10] 서기 2005.05.26 7483
109 [플래시 MX 동영상 강좌] 14.기본적인 베너 제작하기 [13] 서기 2005.06.02 7478
108 [플래시 MX 동영상 강좌] 32. IF문의 심화 [2] 서기 2005.08.03 7448
107 Flash MX의 Action Script에서 이벤트 제어를 메소드로 하기.. [4] file coens 2002.03.23 7417
106 정말급한데요. 플래시 쇼핑몰 제품 스크롤에 대해 [3] file 홍성필 2006.06.05 7222
105 플래시와 제로보드 연동 기초 (외부 TXT 파일 호출 하여 뿌려주기) [6] 홈때기~♪ 2005.05.20 7191
104 플래시를 이용한 원그래프 그리기입니다. [2] file 삐리리 2005.07.04 7170
103 [플래시 MX 동영상 강좌] 30. onClipEvent를 이용한 무비클립의 회전 [8] 서기 2005.07.08 6947
102 다양한 색상으로 입체효과주기(그라디언트) [1] 펀에듀넷 2006.04.24 6900
101 [ 플래시 2004 프로페셔널 ] AS2.0의 기초 [1] Fc 2004.02.25 6846
100 스위시맥스7강[스프라이트와 Tell Target] [2] 에듀멘 2006.02.28 6753
99 스위시강좌 // 글보고 감추기 [1] 문학의향기 2006.08.11 6746
98 [플래시 MX 동영상 강좌] 5-1. 레이어를 이용한 에니메이션 보강 [8] 서기 2005.05.24 6579
97 [플래시 MX 동영상 강좌] 26. 아날로그 시계를 제작해보자. [10] 서기 2005.06.24 6578
96 스위시맥스8강[퀴즈만들기] [2] 에듀멘 2006.02.28 6554
95 [플래시 MX 동영상 강좌] 27. 엽서를 만들어보자. [8] 서기 2005.06.28 6528
94 스위시맥스강좌 // Replay 버튼 만들기 [1] 문학의향기 2006.08.11 6528
93 [ Flash MX ] 플래쉬 무비 안에서 커서 바꾸기 [5] file 김지성 2002.08.31 6432
92 아래 두개올린것을 믹스한겁니다~ㅎ [2] file 한태종 2007.02.14 6281