기초 플래시 강좌 - 액션 스크립트2 정보
기타 기초 플래시 강좌 - 액션 스크립트2
첨부파일
본문
[기타] 기초 플래시 강좌 - 액션 스크립트 에서 배운 내용을 약간 응용해봅시다.
이번엔 대각선 방향으로 움직이게 해봅시다.
_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;
}
이번엔 대각선 방향으로 움직이게 해봅시다.
_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
0
댓글 전체