본문 바로가기
  • 오직 예수 그리스도
스위시세상/스위시 고급

script gallery

by 어린양01 2014. 5. 22.

 

script gallery

무비 800X500
1. Scene_1선택 Window→Guides→Showdml 옆의 사각클릭
   H=375 Snap의 사각클릭 V=250으로

2. Content로 이미지 13장 불러와 모두 작업창으로 불러와
   Properties창에서 이름을 아래서부터 aa1~aa13로, W=120 H=80
   으로 작업창의 좌측아래 View의 25%클릭 이미지를 하나씩 무비창
   밖으로 무작위로 배치하고

3. 이미지 모두선택 Properties창에서 Target체크(중요)하고 무비클
   립으로 묶고 O=X Center로 놓고 작업창의 조절점을 X,Y=0으로 끌
   어다 놓고, 이름 img로 필터주고
4. img에 아래 스크립트 복사해다 붙여넣고 필터주고 사각그려 라인
   =none Fill color=Solid, W=800 H=500 O=X Center X=400
   Y=250으로하고 img 아래로 내려 img와 무비클립으로 묶고 마스크
   체크하고 이름 main으로, 테이블을 넣을려면 X scale=90
   Yscale=85로(테이블 너비많큼 줄여준다) 방향키로 위치 맞춰주고
   이미지 하나하나 클릭하여 확인해 보고 배경넣고 알아서 꾸민다


 

 

 


img에 붙일소스

 function init(){
          aa1.ss(0.1, 80, 50, 154, 95);
          aa2.ss(0.1, 400, 50, 154, 95);
          aa3.ss(0.1, 720, 50, 154, 95);
          aa4.ss(0.1, 240, 151, 154, 95);
          aa5.ss(0.1, 560, 151, 154, 95);
          aa6.ss(0.1, 80, 252, 154, 95);
          aa7.ss(0.1, 400, 252, 154, 95);
          aa8.ss(0.1, 720, 252, 154, 95);
          aa9.ss(0.1, 240, 353, 154, 95);
          aa10.ss(0.1, 560, 353, 154, 95);
          aa11.ss(0.1, 80, 454, 154, 95);
          aa12.ss(0.1, 400, 454, 154, 95);
          aa13.ss(0.1, 720, 454, 154, 95);
           }
          onSelfEvent (load) {
          k = 1;
          MovieClip.prototype.ss = function (speed, targetx, targety, width, height){
          this.onEnterFrame = function (){
          this._x += speed * (targetx - this._x);
          this._y += speed * (targety - this._y);
          this._width += (width - this._width) / 5;
          this._height += (height - this._height) / 5;
          }
          }
          init();
          }
          onSelfEvent (enterFrame) {
          stop();
          for (i = 1; i <= 15; i++) {
             this["aa" + i].onRollOver=function(){
               this.swapDepths(k++);
                this.gotoAndPlay(2);
                  }
                }
         for (i = 1; i <= 15; i++) {
         this["aa" + i].onPress = function (){
          this.isDown = !this.isDown;
           if(this.isDown==true){
            this.ss(0.1, 400, 250, 700, 400);
           }
          else{
          init();
           }
          }
         }
        }

  

script gallery.swf script gallery.swi
script gallery.swf
0.82MB
script gallery.swi
6.79MB