메뉴 건너뛰기

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
271 (FLASH) 제로보드 플래시로 만들기 (2) [12] file 야웅 2002.03.06 20287
270 [초보만-_-;]움직이는 글씨..무비클립으로 [22] file 한쯔 2003.06.27 20035
269 간단하게 플래시 검색엔진 만들기 [27] aizman 2004.01.13 19838
268 [플래시]울트라 파워 멋진 텍스트무비!!HaHa! [23] file 길수님 2002.09.19 19518
267 가속도붙은 무비클립이 따라다니는 메뉴 수정 [7] file 신광원 2004.03.30 19494
266 매트릭스 코드[MX] [29] file 엔젤퀸 2003.07.30 19017
265 -플래쉬로 CD 회전시키기- [33] 희준품속 2002.05.08 18726
264 많이 사용되는 메뉴 이용하여, 서브메뉴 만들기 [3] file 여어자 2005.01.14 18697
263 [플래시 MX 동영상 강좌] 16. 홈페이지 서브메뉴 제작해보기 [25] 서기 2005.06.04 18659
262 [플래시 MX 동영상 강좌] 23. 스르륵 서브메뉴 제작하기 [30] 서기 2005.06.17 18571
261 물방울 무비 시리즈(1) [15] file 여어자 2003.10.09 18346
260 이번엔 버튼액션;;;....HAHAHAHA....-ㅁ- [2] file 길수님 2002.07.14 17881
259 스위시맥스5강[마스크효과] 에듀멘 2006.02.28 17791
» 물방울 무비 시리즈(4) [13] file 여어자 2003.10.11 17662
257 [5.0] 가속도 효과 내 보기 [7] file 세죠위그이 2003.06.06 17648
256 가속도붙은 무비클립이 따라다니는 메뉴 ? [17] file flashman 2004.02.19 17602
255 플래시로 Show - Hide 되는 엽기 공지사항 만들기;; [8] 유군-_-)/ 2002.02.25 17445
254 무비클립 복제를 이용한 땅에 비가 내리는 모습 [11] gimbob 2002.11.28 17345
253 [초급] 마스크 이용 간단한 무비 만들기 [8] 요니에 2002.10.21 17276
252 배너맹글때 딱 어룰리는 ~! 그라디에이션 효과간단히 주기. [3] file 쿠리 2002.07.05 17235