태그자료

* 스위시맥스4 스크립트기초 예제08

rndjr 2013. 1. 11. 10:55

 

* 스위시맥스4 스크립트기초 예제08 

1. Outline 패널에서 각각의 버튼을 선택하고, Script 패널에서
   다음과 같이 입력한다.

  - 투명도 - :
on (release) {
   if(_root.bull._alpha > 0){
   _root.bull._alpha = _root.bull._alpha - 10
}
}

- 투명도 + :
on (release) {
   if(_root.bull._alpha < 100){
   _root.bull._alpha = _root.bull. _alpha + 10
}
}

- 세로크기 - :
on (release) {
   if(_root.bull._height > 100){
   _root.bull._height = _root.bull._height - 20
}
}

- 세로크기 + :
on (release) {
   if(_root.bull._height < 450){
   _root.bull._height = _root.bull._height + 20
}
}

- 가로크기 - :
on (release) {
   if(_root.bull._width > 150){
   _root.bull._width = _root.bull._width - 20
}
}

- 가로크기 + :
on (release) {
   if(_root.bull._width <
700){
   _root.bull._width = _root.bull._width + 20
}
}

 * 전체크기 -
on (release) {
    _root.bull._xscale = _root.bull._xscale - 10;
    _root.bull._yscale = _root.bull._yscale - 10;
}

* 전체크기 +
on (release) {
    _root.bull._xscale = _root.bull._xscale + 10;
    _root.bull._yscale = _root.bull._yscale + 10;
}

* 초기화
on (release) {
    _root.bull._rotation = 0;
    _root.bull._alpha = 100;
    _root.bull._xscale = 100;
    _root.bull._yscale = 100;
    _root.bull._visible = true;
}

 

 

 첨부파일 script8.swf

 

 

 

첨부파일 script8.swi

 
//