메뉴 건너뛰기

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
275 작업창이 위 메뉴바 안쪽으로 끼어서 빼낼 때 대처하는 방법 [12] wig74 2002.07.10 9708
274 e마크 만들어 보기 [22] file ZetStorm 2002.07.08 16540
273 [Siren]간단하게 화려한(약간) 바탕화면 만들기 [15] 세이렌 2002.07.08 7182
272 단몇번의 선택으로 마크그리기 [9] file w:)style 2002.07.08 3551
271 [이미지]오버레이+칼라도지사용해보기^^; [11] file 미스디쟌 2002.07.08 6934
270 페인트샵에서도 퍼지는(?) 효과를 사용해보자!! [4] file w:)style 2002.07.07 5096
269 그림문자 디자인(문자안에 그림^-^*) [4] file +송이+ 2002.07.07 9664
268 [팁]포토샵7.0에서 점선긋기!! [10] Archi* 2002.07.07 10137
267 [그림판] JPEG 형식으로 깨끗하게 저장하기 [14] document 2002.07.06 6047
266 아쿠아? 유리? 암튼 따라해보기(보충설명포함) [21] file 꼬랑지 2002.07.05 13084
265 포토샵 못지 않다.! 플래쉬로 드롭쉐도우 효과주기. [6] file c_⊙_⊙_l 2002.07.05 17039
264 사이트제작시 메인이미지로 쓰이는 이미지 만들어보기~ [17] file webdio *^-^* 2002.07.05 22068
263 배너맹글때 딱 어룰리는 ~! 그라디에이션 효과간단히 주기. [3] file 쿠리 2002.07.05 17235
262 [Toy] Qoo 그리쟈!! >㉦< [15] 토이 2002.07.01 5923
261 페인트샵 4강진출국 국기튜브입니다.. [9] file {동준짱} 2002.07.01 3226
260 특정부분만 컬러로 만들어 강조시키기 [17] 양현일 2002.06.30 6641
259 [팁]반복할때 끊기지 않는 자연스러운 느낌주기.. [8] Archi* 2002.06.29 12537
258 화려한 러스티 네온 텍스트 테크닉 [8] file rgbmix*DT 2002.06.27 12941
257 (Cool3D)움직이는 텍스트애니만들기^-^ [20] file 미스디쟌 2002.06.27 5981
256 포토샵 7에서 흰색이 안나올때... [3] 서주원 2002.06.27 3370