메뉴 건너뛰기

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 48026
2175 13. 심플하게 사진틀을 만들어보자 [9] file 박진 2004.07.21 17961
2174 [특집]픽셀아트(도트그림)의 기본기 닦기2 !! #2볼록하고이쁜곡선그리기 [20] file Wings 2002.08.14 17935
2173 도장 만들기. [2] file 강승진 2002.09.24 17911
2172 파워풀한 로고만들기 [5] file LitQoo 2004.02.24 17881
2171 이번엔 버튼액션;;;....HAHAHAHA....-ㅁ- [2] file 길수님 2002.07.14 17881
2170 이젠 나도 접사 찍는다! 아웃포커싱 효과 ^^ [14] file barbie 2003.11.27 17845
2169 이번에는 불타는 글짜~! (중복 없는듯 해요 ^-^) [20] file Tokki™ 2003.12.09 17815
2168 이미지를 화려하게 변신시켜보자 [4] file 이오르 2003.12.03 17814
2167 포토샵과 이미지 레디로 움직이는 GIF 만들기 [12] 시스 2004.01.20 17808
2166 스위시맥스5강[마스크효과] 에듀멘 2006.02.28 17791
2165 [일러스트페이지]명암 이야기~ [16] file 현주 2002.08.10 17767
2164 초간단 염색하기 (다른방법) [24] file puki 2003.01.13 17732
2163 오버레이로 글씨꾸미기. [9] file 리즈 2002.12.07 17732
2162 [둥글둥글2탄] 사진모서리를 둥글게~! ^^ {초급강좌} [17] file Smileru 2005.01.04 17704
2161 예쁜 얼굴 더 예쁘게 [:+:뽀샤시 효과:+:] [10] file ♡OHLI4RANG♡ 2003.04.17 17698
2160 일러스트를 이용한 아이콘 만들기 4편 - 자동차 [12] file caramelkiss 2004.01.05 17680
2159 마스크를 이용한 일러스트 그리기...;; [13] file misTsion 2004.05.10 17674
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
2157 [5.0] 가속도 효과 내 보기 [7] file 세죠위그이 2003.06.06 17648
2156 가속도붙은 무비클립이 따라다니는 메뉴 ? [17] file flashman 2004.02.19 17602