메뉴 건너뛰기

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 [muTStyle.Net]-기초중의 기초- 테두리있는 그림자 글자 만들기 [6] 바하무트 2003.10.22 7279
1414 웹화면에 직접 글씨를 쓰는듯한..[B] [21] file 여어자 2003.10.21 25345
1413 웹화면에 직접 글씨를 쓰는듯한..[A] [12] file 여어자 2003.10.21 20807
1412 [bosskooi]고대 종이질감 [25] file 박형준 2003.10.21 26306
1411 햇빛이 비추는 효과내기 [9] file SeasonSonata 2003.10.21 15508
1410 [케이] Spike (까시-.-) 를 만들어봅시다; [19] Kei 2003.10.20 10022
1409 플래시에서 물방울 그리는 방법 [10] file 여어자 2003.10.20 21045
1408 버튼 만들기 (1) [8] file 응? 2003.10.19 15751
1407 Layer 설명![너무 간단한가...;] [3] EyE 2003.10.19 5681
1406 진짜 초짜를 위한 레이어 복사&추가하기 (영문버젼6.0) [8] file 아싸 종진스 2003.10.19 7974
1405 3D Transform 을 이용한 기포(물방울) 만들기. [19] 눔곰 2003.10.18 11801
1404 Flash MX2004 프로페셔널..에 관한 간략한 새로운기능(이미지 없음..;) [11] 세나^.^ 2003.10.18 8856
1403 [케이] 오브(orb)를 만들어봅시다! [20] Kei 2003.10.17 8666
1402 3DSMax5.0 3D Logo 만들기(렌더링까지) [8] file tester350 2003.10.13 16701
1401 웹디자이너를 위한 드림위버MX에서 ASP어플리케이션 작성하기.... [11] file 박진현 2003.10.13 8519
1400 초승달 그리기 [16] 체리향기∮ 2003.10.12 10014
1399 [케이]Dark Layer [호일도됨-.-] [31] Kei 2003.10.11 13037
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
1397 물방울 무비 시리즈(3) [5] file 여어자 2003.10.10 12102
1396 귀여운 아쿠아 버튼 만들기 (새로운 버젼) [39] file 이오르 2003.10.10 46699