메뉴 건너뛰기

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 이러닝 저작tool 강좌 윤선미 2006.07.12 4486
270 ActionScript 1_3 하나둘 2006.07.09 4532
269 [플래시 MX 동영상 강좌] 20. Tell Target [5] 서기 2005.06.09 4536
268 멀티미디어활용 콘텐츠제작,플래시콘텐츠제작[렉토라] [1] 윤선미 2006.06.30 4580
267 ActionScript 1_5 하나둘 2006.07.09 4618
266 [플래시 MX 동영상 강좌] 21. 무비클립의 드래그 [9] 서기 2005.06.10 4672
265 ActionScript 1_2 하나둘 2006.07.09 4674
264 렉토라2007 윤선미 2006.12.11 4681
263 액션 스크립트 코드 힌트 보이기와 숨기기 file port 2006.10.25 4711
262 [플래시]카드멜에서 사용되는 Replay와 Stop방법 [11] file 길수님 2002.08.20 4733
261 FlashVars로 플래시에 변수값 넘기기 [1] file 삐리리 2005.04.25 4758
260 [ 플래시 2004 프로페셔널 ] AS2.0 클래스 작성 [4] Fc 2004.02.26 4765
259 부드럽게이동하는 공식을 이용한 바네이메뉴 만들기(2) 비무p 2005.01.12 4839
258 [ 플래시 게시판 ] 튜토리얼 - LoadVars클래스를 사용한 기초게시판 file Fc 2004.02.25 4846
257 회원님들 질문요.. 플래쉬 주위에 검정색 점선 같은거 왜생기는거죠? [3] 박노성 2006.09.24 4891
256 플래시에서 마스크가 적용되지 않는 경우 [2] file port 2006.10.25 4916
255 [스위시 맥스]_그라디언트 적용 메뉴버튼 만들기(동영상강좌) [1] shop 2006.04.14 4949
254 ActionScript 2_2 sample 하나둘 2006.07.13 4989
253 플래시에디터 [12] file 삐리리 2005.05.29 5002
252 [플래시 MX 동영상 강좌] 31. IF문의 사용.. [8] 서기 2005.07.28 5003