Devil-Choi 2010. 2. 17. 03:28



프레임을 선택하고 Actions(단축키 : F9)에서 아래와 같이 입력한다.
sp=5;
ro=10;

무비클립에 name(one)을 지정해 주고 무비클립을 선택후 Actions(단축키 : F9)에서 아래와 같이 입력한다.
onClipEvent(enterFrame){
  _root.one._x+=_root.sp;
  _root.one._rotation+=_root.ro;
  if(_root.one._x>500 || _root.one._x<20){
  _root.sp=-1*_root.sp;
  _root.ro=-1*_root.ro;
  
 }
}