기초 플래시 강좌 - 액션 스크립트2 > 그누3 팁자료실

그누3 팁자료실

기초 플래시 강좌 - 액션 스크립트2 정보

기타 기초 플래시 강좌 - 액션 스크립트2

첨부파일

위치제어문제.fla (16.5K) 10회 다운로드 2004-06-24 10:23:02
위치제어문제_완성.fla (18.0K) 15회 다운로드 2004-06-24 10:23:02

본문

[기타] 기초 플래시 강좌 - 액션 스크립트 에서 배운 내용을 약간 응용해봅시다.
이번엔 대각선 방향으로 움직이게 해봅시다.

_root.l_u_b.onRelease=function(){
_root.ggamagi._x-=10;
_root.ggamagi._y-=10;
_root.ggamagi._rotation=300;

}
_root.r_u_d.onRelease=function(){
_root.ggamagi._x+=10;
_root.ggamagi._y-=10;
_root.ggamagi._rotation=60;

}
_root.l_d_b.onRelease=function(){
_root.ggamagi._x-=10;
_root.ggamagi._y+=10;
_root.ggamagi._rotation=210;
}
_root.r_d_b.onRelease=function(){
_root.ggamagi._x+=10;
_root.ggamagi._y+=10;
_root.ggamagi._rotation=120;
}
추천
0
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로