★,Button Gallery
1.movie 720/500 2.shape(Autoshape-Bevelled button를그린다( width=720 height=500) 3.ungroup 하여 위치를보며 이름을 center.left.right.top.bottom 으로고친다 5.center- line=none 채우기-#ccff00 6.left.right.top.bottom-gradient(진록색#006600 연록색=ccff00) top과bottom선택 Edit Fill transform에서 각도 90도 Edit fill transform 에서 가운데가 연록색이 되도록 마춘다 7.사각 shape 를화면에그리고 (x=350 y=250 w=720 h=260) gradient(진록 연록 연록 진록) line=5 흰색 seb selection tool-insert vertex로 가운데를 주려준다 8.모든도형을 movie clip 하고 이름을 bg 9.shape(300/300)그려(x=350 y=250 ) line=5 흰색 복사 제자리붙이기 모두14개 10.content library 로 image 14개삽입 shape 와 그림짝마추기 이미지 모두선택 comvery to mocie clip 이름을 아래로부터 image1.2.3....14 로한다 stop playing at end 에 책크해지 11.제목 "Gallery" 넣고 1프래임에 looping continuously--wild rainbow (100) 12."옆이미지를 클릭하시오" 글을 밑에놓는다 13.scene-1 에붙이는 script onFrame (1) { scaleArray = new Array(10, 10, 30, 100, 30, 10, 10); locationArray = new Array(50, 50, 130, 360, 590, 670, 670); alphaArray = new Array(10, 30, 50, 100, 50, 30, 10); _global.over = 5; numOfImage = 14; var i = 1; while (i <= numOfImage){ mc = this["image" + i]; mc._y = 250; if (over == i){ mc.Num = 3; }else if (over - 1 == i){ mc.Num = 2; }else if (over - 2 == i){ mc.Num = 1; }else if (over - 3 >= i){ mc.Num = 0; }else if (over + 1 == i){ mc.Num = 4; }else if (over + 2 == i){ mc.Num = 5; }else if (over + 3 <= i){ mc.Num = 6; } mc._x = locationArray[mc.Num]; mc._xscale = scaleArray[mc.Num]; mc._alpha = alphaArray[mc.Num]; mc._yscale = mc._xscale; mc.onPress = function (){ if (over != Number(this._name.substr(5))){ var _l1 = Number(this._name.substr(5)); _global.over = _l1; } }; i++; } this.onEnterFrame = function (){ var _l1 = 1; while (_l1 <= numOfImage){ mc = this["image" + _l1]; if (over == _l1){ mc.Num = 3; }else if (over - 1 == _l1){ mc.Num = 2; }else if (over - 2 == _l1){ mc.Num = 1; }else if (over - 3 >= _l1){ mc.Num = 0; }else if (over + 1 == _l1){ mc.Num = 4; }else if (over + 2 == _l1){ mc.Num = 5; }else if (over + 3 <= _l1){ mc.Num = 6; } mc.targetX = locationArray[mc.Num]; mc.targetScale = scaleArray[mc.Num]; mc.targetAlpha = alphaArray[mc.Num]; mc._alpha += (mc.targetAlpha - mc._alpha) / 4; mc._x += (mc.targetX - mc._x) / 4; mc._xscale += (mc.targetScale - mc._xscale) / 4; mc._yscale = mc._xscale; _l1++; } }; }
'스위시세상 > 스위시 고급' 카테고리의 다른 글
in out (0) | 2010.08.22 |
---|---|
SwapDepths (0) | 2010.08.22 |
★,움직이는 배경겔러리 만들기 (0) | 2010.08.22 |
물파장 물결판 (0) | 2010.08.20 |
스랭크 인 슬라이드 (0) | 2010.08.16 |