메뉴 건너뛰기

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