메뉴 건너뛰기

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 초코렛 만들기 [10] file 후니 2002.03.01 7883
1414 마우스로 장미꽃 [12] file 우경남 2003.03.16 7883
1413 쓰레기 글자 만들기 [18] file torayo 2003.01.15 7886
1412 =도트초보= 화상카메라(?)만들기 [15] file 레드 2003.02.26 7886
1411 햇님만들기 file 임자영 2007.04.04 7891
1410 [포토샵웍스 강좌시리즈] 굴절 표현하기 [2] file java 2006.04.25 7893
1409 - 피가 흐르는 듯한 글자. [11] file 푸리 2003.02.13 7901
1408 Dotory Style :-) 웃고 있는 어설픈 토깽이 그리기 [7] file 도토리™ 2003.05.24 7901
1407 람보르기니 무르시엘라고 - - - 2부 [29] file Blue™ 2003.03.16 7902
1406 Shape툴을 활용한 이미지 - 1 [2] file webagit 2004.07.22 7905
1405 [삼류강좌]포토샵 폭파장면 만들기 및 응용.(사진 이제 뜸..) [21] 정동규 2002.11.03 7913
1404 아름다운 대한민국 플래시,렉토라강좌 윤선미 2007.02.12 7914
1403 마크나 불펌강좌에 쓰이는 이미지 만들기!! [8] file .zeve 2003.01.25 7916
1402 도트 찍을때. 유용한 팁!!일고 할쑤있나 모르겟네요!! [23] file NET.ID NLOVEN 2002.08.09 7931
1401 [티모시]:::::: 물약 그리기::::::::: [25] 티모시 2003.03.01 7933
1400 (ver 7이상) 브러시 옵션 사용해서 얼렁뚱땅 의외의 효과 얻기(?) [9] file hoosh 2003.12.06 7935
1399 마티오의 도트 강좌*초콜렛 그려보기 [4] file 마티오 2004.05.31 7935
1398 [SWIFT 3D] 3D 회전하는 문자 만들기(로고나 배너등으로 응용해보아요~) [6] file ⓘ아이샤이 2003.09.14 7952
1397 라이트닝(?) 효과... [10] file 마리아 2003.01.07 7955
1396 SWISH - 버튼만들기 8) 장면(Scene)이동하기 [3] file 아메 2003.04.09 7957