메뉴 건너뛰기

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
1415 - 유리 텍스트 만들기 [12] file 푸리 2002.12.28 10159
1414 ((써니꼬♡)) #1 유리창 효과내기〃」 [6] file 써니꼬ⓥ 2003.03.23 10158
1413 매트릭스효과[초록색으로 만든다면..] [7] ㉿포토샵 2002.07.26 10150
1412 미끈한 피부만들기 [2] file 어지니 2006.04.02 10141
1411 교안 제작강좌 [ 코스웨어 제작강좌] 윤선미320 2008.01.23 10139
1410 [팁]포토샵7.0에서 점선긋기!! [10] Archi* 2002.07.07 10137
1409 선스타일 기능을 이용한 문자 꾸미기 [10] file zxczxc 2003.06.27 10134
1408 제1강 3ds 시작하기 - 드로잉 명령 익히기-02 file 최승철 2005.03.13 10108
1407 허덥 작품 #2 [3] file 나보기여 2004.06.14 10094
1406 [기초中기초] 필터 : 모자이크로 인물사진에 효과주기 [8] file 프레 2002.08.08 10089
1405 두줄로 빛나는 이미지 만들기 [8] 힐링포션 2002.04.08 10086
1404 [허접팁]플래쉬MX로 무비 파일 용량 줄이기 [7] 양윤식 2002.10.27 10081
1403 포토삽 7.0 초간편 홈페이지 만들기 [1] 이재희 2006.01.22 10080
1402 [키르강좌] 빤짝이는 축전만들기~★요청&추천★ [2] 키르(SP) 2002.03.02 10060
1401 진주알 만들기 [16] file 테이 2003.12.27 10051
1400 [케이] Spike (까시-.-) 를 만들어봅시다; [19] Kei 2003.10.20 10022
1399 [초급] 글자 휘게(?) 하기 [12] file 금고리 2002.12.23 10018
1398 초승달 그리기 [16] 체리향기∮ 2003.10.12 10014
1397 플래시 이퀄라이저만들기에 이용하는 swiftmp3프로그램 이용법-_-; [4] file 세나^.^ 2003.03.28 10010
1396 귀여운 여자 아이 도트찍기(중급) [10] 이소정 2003.03.10 10002