메뉴 건너뛰기

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
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
1394 물방울 무비 시리즈(3) [5] file 여어자 2003.10.10 12102
1393 귀여운 아쿠아 버튼 만들기 (새로운 버젼) [39] file 이오르 2003.10.10 46699
1392 물방울 무비 시리즈(2) [1] 여어자 2003.10.10 10953
1391 물방울 무비 시리즈(1) [15] file 여어자 2003.10.09 18346
1390 [케이] 제목은 심플하게 Feather effects [37] Kei 2003.10.09 15627
1389 네모난 사진 동그랗게 만들기 강의입니다. [6] file 이형진 2003.10.09 987
1388 [케이]LCD 인터페이스? [36] Kei 2003.10.08 13477
1387 필터를 사용하여 간단하게 추상화를 그려봅시다 [7] file 버찌소년 2003.10.08 8878
1386 펜툴로 TV그리기입니다.^^ [14] file 정원。。 2003.10.07 14890
1385 글자색과 바탕색 축출하기 [11] file 박보람 2003.10.07 3809
1384 탄성을 가진 투명 물방울 메뉴 [34] file 여어자 2003.10.07 35862
1383 사진의 윤곽만 사용하기 [6] file 여어자 2003.10.06 18555
1382 흔들리는 네온사인 만들기 (보통 네온사인과 다른기법) [11] file 이오르 2003.10.06 13361
1381 [케이] 링만들기 - 중복찾기 해봤으나 없었음; [16] Kei 2003.10.04 9571
1380 MP3리모컨 버튼만들기... [18] file (-_ㅡ*) 2003.10.03 19993
1379 Border 만들기 - 보통 홈피 오른쪽에 산입하는경우가 많군요 [25] Kei 2003.10.02 16399
1378 [홈 레이아웃] 큰이미지를 통채로 사용한 메인화면 [8] file 여어자 2003.10.02 12424
1377 [ Game I의 이상한 강좌 ] 오디오 스피커 효과내기 [9] file Game_I 2003.10.01 7095
1376 [ ] 움직이는 메뉴바 [9] file bayoseo 2003.10.01 28551