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

★,Show-hide slide버튼겔러리

by 어린양01 2010. 9. 16.

★,Show-hide slide버튼겔러리
1.movie 600/500  노랑
2.content페널 20장삽입(h1-h5(Hallstatt) b1-b5(Butterfly) g1-g5(Greece) m1-m5(Monet)
3.화면에20장삽입 아래로부터  h1-h5.b1-b5.g1-g5.m1-m5위치
앵커포인트 -center 300/310/560/340
이름을 밑부터 img1...img20  모두선택 line=0 검정
4.img1 1프래임에서 
         Appear into position-fade born in   duration=50
효과 를 복사 모두선택 1프래임에 붙여준다
5.모두선택 convert to movie clip   책크는 그냥둔다
6.모두선택group as movie clip 이름을"imagemc"
7.(배경이미지)
이미지 1장 삽입 300/310/560/340 이름을"bg" line=3 검정
Details-Appearance-Brightness=60 확인  저장
8.imagemc를 열고 셋트메뉴 1.2.3.
 stop 은주지않는다
9.사각 shape  line=none 채우기=solid(Alpha=0)
앵커포인트=center x=190 y=115 width=90 height=30
10.shift+Alt-드래그  하여 옆으로 4개를만드고 이름을 "s1....s4"
  s3과 s4  width=70로결정
11.text   Bodoni MT.20.검정 Hallstatt.Butterfly.Greece.Monet.써 넣고
  text 이름을"t1...t5
12.s1과 t1를선택 Aline패널의 기준점을 All Selected로 설정하고 가로.세로가운데정열 하고
  Group as Button 이름을"b1" 
  나머지 도형과 text 도 위와같이 설정 이름을"b2...b4"
13.b1-b4 선택  배분정열 하고 group as movie clip 이름을"mainbt"
14.사각 shape  line=0 검정 채우기=solid(Alpha=60) 이름을"btbg"
앵커포인트=top left  x=610 y=20 width=310 height=70 
15.화면에 h1-h5 넣고
  앵커포인트=center  x=645 y=55 width=50 height=50 
 b2--x=705   b3--x=765   b4--x=825   b5--x=885 
16.b1-b5선택  convert to movie clip
17.btbg와b1-b5선택 group as movie clip 하고 복사 제자리붙이기4개
  이름을 h.b.g.m  하고 h.b.g.m 안에 이미지를 content페널안에 그림을 마추고
  이름을 b1..b20 으로 바꾼다
18.h.b.g.m 선택group as movie clip 이름을"btmc" 
19.text  Parchment.90.검정 Gallery 로입력
20.사각 shape  line=none  채우기=solid(Alpha=0) 
21.text와shape 선택group as Button 이름을"gallery"
   convert to movie clip 다시 convert to movie clip  이름을"main"
22.text HY바다M.36.검정 "그림을 드래그해주세요" 로입력
23.소스붙이기
★,scene-1에

onFrame (1) {
    MovieClip.prototype.slidebt = function (speed, targetx){
    this.onEnterFrame = function (){
        this._x += speed * (targetx - this._x);
         };
    };
        _root.imagemc.onPress=function(){
                this.startDrag(false);
                      };
        _root.imagemc.onRelease=function(){
                stopDrag();
                      }; 
}
★,main에

onFrame (1){
   gallery.onPress = function (){
         _root.btmc.h.slidebt(0.2, 0);
         _root.btmc.b.slidebt(0.2, 0);
         _root.btmc.g.slidebt(0.2, 0);
         _root.btmc.m.slidebt(0.2, 0);
        };
}
★,btmc 에

onFrame (1){
      for (i = 1; i <= 5; i++) {
        this.h["b" + i].onPress=function(){
                num=this._name.substr(1,2);
               _root.imagemc.gotoAndStop(num);
                      };
         }
      for (i = 6; i <= 10; i++) {
        this.b["b" + i].onPress=function(){
                num=this._name.substr(1,2);
               _root.imagemc.gotoAndStop(num);
                      };
         }
      for (i = 11; i <= 15; i++) {
        this.g["b" + i].onPress=function(){
                num=this._name.substr(1,2);
               _root.imagemc.gotoAndStop(num);
                      };
         }
      for (i = 16; i <= 20; i++) {
        this.m["b" + i].onPress=function(){
                num=this._name.substr(1,2);
               _root.imagemc.gotoAndStop(num);
                      };
         }
         }
★,main bt 에

onFrame (1){
    b1.onPress = function (){
         _root.btmc.h.slidebt(0.2, -340);
         _root.btmc.b.slidebt(0.2, 0);
         _root.btmc.g.slidebt(0.2, 0);
         _root.btmc.m.slidebt(0.2, 0);
        };
     b2.onPress = function (){
         _root.btmc.h.slidebt(0.2, 0);
         _root.btmc.b.slidebt(0.2, -340);
         _root.btmc.g.slidebt(0.2, 0);
        _root.btmc.m.slidebt(0.2, 0);
        };
    b3.onPress = function (){
         _root.btmc.h.slidebt(0.2, 0);
         _root.btmc.b.slidebt(0.2, 0);
         _root.btmc.g.slidebt(0.2, -340);
        _root.btmc.m.slidebt(0.2, 0);
        };
    b4.onPress = function (){
         _root.btmc.h.slidebt(0.2, 0);
         _root.btmc.b.slidebt(0.2, 0);
         _root.btmc.g.slidebt(0.2, 0);
         _root.btmc.m.slidebt(0.2, -340);
        };               
}

'스위시세상 > 스위시 고급' 카테고리의 다른 글

포토01  (0) 2010.09.16
★튜립  (0) 2010.09.16
Gallery slide만들기  (0) 2010.09.16
큐브 영상 만들기  (0) 2010.09.10
ymouse(모지스)  (0) 2010.09.10