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

in out

by 어린양01 2010. 8. 22.

★ in out 1. 작업창의 크기 Properties 패널-Movie Properties...-width(600), Height(550), Background color(흰색) 2.content- library 로 이미지10장을 불러온다 3.원 shape를 width=55 height=55 그리고 line=1 색은=임의 채우기=img 4.복사제자리붙이기 모두10개 5모두선택 윗쪽정열 가운데정열 6.그림조합 10개 shape 7.모두선택 convert to movie clip 아래부터 img1...img10 8.화면크기 650/600 으로 모두movie clip만들고 앵커포인트 left top 하고 x:25 Y:25 ungroup 해놓는다 9.script 넣기 scene-1 에 on (press) { _root.viewimg(1); } function viewimg (num) { for (i=1; i<=10; i++) { _root["img"+i].show = "out"; } _root["img"+num].show = "in"; } onFrame (2) { viewimg(1); stop(); 10.img1 에 onSelfEvent (load) { show = "out"; tgx = this._x; tgy = this._y; speed = 5; } onSelfEvent (enterFrame) { if (show == "out") { this._x += (tgx - this._x)/speed; this._y += (tgy-this._y)/speed; this._width += (55-this._width)/speed; this._height += (55-this._height)/speed; } else { this._x += (325-this._x)/speed; this._y += (325-this._y)/speed; this._width += (450-this._width)/speed; this._height += (450-this._height)/speed; }

in_out[1].swf

 

in_out[1].swi

} on (press) { _root.viewimg(1); } 11.img1...img10 에붙이고 _root.viewimg(1); 만 자기수로 고친다

in_out[1].swi
1.31MB
in_out[1].swf
0.84MB

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

백업 갤러리  (0) 2010.08.27
이미지 마스크 갤러리  (0) 2010.08.23
SwapDepths  (0) 2010.08.22
Button Gallery  (0) 2010.08.22
★,움직이는 배경겔러리 만들기  (0) 2010.08.22