메뉴 건너뛰기

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
2175 에어브러시 툴로 원 그리기 [6] file duwhill2 2002.08.21 4043
2174 [플래시 MX 동영상 강좌] 10. Shape Hint [6] 서기 2005.05.29 4060
2173 [퍼니페인트]효과를 쉽게 주자~ "효과 브라우져" [1] funnyPSP 2002.02.23 4069
2172 [퍼니페인트]오랜만에 강좌 요상한 액자 만들기. [7] 대현 2002.11.05 4074
2171 SWISH 버튼만들기 3)image button [2] file 아메 2003.03.18 4092
2170 [동영상강좌] 제6회차 - 테두리 흐릿한 이미지 만들기 아이티스터디 2006.02.02 4094
2169 [초급]포토샵레이어의개념 [3] file rombardi 2003.04.26 4125
2168 포토샵 초기화하기 [3] 햐얀그림자 2003.01.21 4129
2167 [포토샵 7.0 동영상강좌] 5. Pen Tool(선택툴) [2] 서기 2005.09.21 4130
2166 - 색채우기 팁! [12] file 푸리 2003.02.10 4161
2165 [jin]5번째. 꽃그리기. [11] file jin 2003.02.24 4176
2164 스위시맥스4강[기본액션 활용] [2] 에듀멘 2006.02.28 4185
2163 뱅글 뱅글 돌아가는 동글뱅이 만들기 [5] file 낭낭앤 2003.01.09 4204
2162 [포토샵 7.0 동영상강좌] 7. 레이어 이팩트 사용방법 [2] 서기 2005.10.24 4204
2161 SWISH (스위시) 메인화면 설명 [2] file 아메 2003.02.13 4213
2160 스위시맥스2강[애니메이션 효과] [4] 에듀멘 2006.02.28 4213
2159 dong성이의 뽀로샵 강좌 - 1 - 조명효과내기 [3] file dong성이 2002.12.28 4214
2158 [삼류강좌]그라디언트와 브러쉬 100% 활용하기(계정수정완료) [4] 정동규 2002.11.03 4215
2157 [jin]4번째 강좌.요청강좌. 카메라 그리기 [8] file jin 2003.02.23 4218
2156 -_- 허접 도트 강좌입니다. -나무- [2] w:)style 2002.09.13 4220