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

Main Button.

by 어린양01 2012. 12. 18.

 

 

 

 

첨부파일 Main Button.swi

 

 
 A) Button1 
 1) 아이콘 삽입 열고
   버튼이 자리할 부분에 Shape을 그리고 Fill color:l:none
 2) Text Tool 선택 - Font: Adobe Garamond - Pro Bold  Size: 16     
    Color: FFFFFF - Text: Poem1  
   shape와 text 를 group as button 위에하나만 책크
  button 과  아이콘을  movie clip 이름을 b1
3) B1 선택 - 2, 23, 44, 50Frame에 Movie Control Stop
 4)  1Frame에 Frame - SetLabel  Label: up
     3Frame에 Frame - SetLabel  Label: in  
     23Frame에 Frame - SetLabel  Label: out
     43Frame에 Movie Control - Goto and Play(Label)  Label: up 
    45Frame에 Frame - SetLabel  Label: active 
 5) 아래부터 gif 1: 1Frame에 Place 
    Button : 1Frame에 Place  45Frame에 Remove 
 6) Out Line에서 Button 선택하고 Script창 열고  
  a) Add Script - Event - Button - on(RollOver)
             Movie Control - Goto and Play(Label) Label: in 
  b) Add Script - Event - Button - on(RollOut)
             Movie Control - Goto and Play(Label) Label: out 
  c) Add Script - Event - Button - on(Release) 
    Add Script - Statements - Function
    Target: _parent  Function: setActiveButton  Args: this._name 
    Movie Control - Goto and Play(Label)    Label: Active
B) b1를 복사 제자리붙이기  모두5개  align 에서 행으로정열
  a) b1 2F 에 slide in from top..(10)-move(2)-move(7)-복사해서
   올라가며 3F.6F.8F...에붙인다
   모두선택 movie clip 이름을 button  
열고 b1~b5 선택30F에 place    button 30F에 stop
  b) button 에 script
 function setActiveButton (name) {
    var inactiveBttn = this.activeBttn;
    eval‍!(this[inactiveBttn]).gotoAndPlay("up");
    this.activeBttn = name;
}
    onSelfEvent (load) {
    var activeBttn = "";
    eval‍!(this[activeBttn]).gotoAndPlay("active");
}

Main_Button[2].swf

 

Main_Button[1].swi

 

Main_Button[2].swf
0.11MB
Main_Button[1].swi
1.46MB

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

스크립트로_그림자효과넣기  (0) 2013.02.01
[스크랩] 동영상 스위시 맥스4로 불러오기  (0) 2013.01.11
Enter로 full 만들기  (0) 2012.12.18
열리는 배경 만들기  (0) 2012.12.18
drawing mask Gallery  (0) 2012.12.11