메뉴 건너뛰기

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
2414 귀여운 아쿠아 버튼 만들기 (새로운 버젼) [39] file 이오르 2003.10.10 46699
2413 [일러스트페이지]일러스트로 얼굴그리기~(1) 눈그리기~ [39] file 현주 2002.08.07 43569
2412 플래쉬 메뉴 만들기 (위치표시) [24] {동준짱} 2002.07.22 39872
2411 포토샵을 이용해서 인물 일러스트 명암을 쉽게 따보자~ ^^ [33] file caramelkiss 2004.01.18 39858
2410 입체감 있는 메뉴버튼 만들기 (완성된 버튼 다운로드 가능) [10] file 이오르 2003.09.26 38093
2409 (왕초보도 따라하는) 심플한 버튼 만들기 [53] file SaRa's 2004.02.27 38084
2408 쭘식 플래쉬 메뉴 만들기 (2) [15] file 쭘's 2003.04.24 37759
2407 메뉴버튼만들기 [25] file 워니 2002.08.24 36489
2406 사진의 테두리를 붓으로 칠한듯하게 - 초보자를 위한 강좌 [12] file 방정환 2004.07.24 36330
2405 [초보]사진 효과 내기.. [21] file OnceAgain 2003.07.23 35954
2404 탄성을 가진 투명 물방울 메뉴 [34] file 여어자 2003.10.07 35862
2403 [하이링고]아쿠아 물로 글씨를 쓰자!! [50] file 하이링고 2003.05.12 35271
2402 필름을 클릭하면 사진이 찰칵! [17] file 여어자 2003.05.29 34387
2401 [하이링고]칵테일 아쿠아 [96] file 하이링고 2003.02.17 34383
2400 [동영상]그림이 서서히 바뀌는 효과 [6] 이희덕 2002.09.24 34209
2399 미술용 4B연필로 문자 디자인한듯한 효과 [52] file SaRa's 2003.07.11 34065
2398 오래된 종이에 먹이 묻은듯한 효과 [29] file Wings 2003.12.11 33955
2397 [쩌비]아쿠아,브러쉬스타일등 파일모음 3종세트 [25] file 쩌비 2002.10.19 33040
2396 탄성력이 있는 버튼을 만들어봅시다, [57] file 라비 2003.04.25 32458