오

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

· 2004-06-24 (목) 10:23:02 · 2637
[기타] 기초 플래시 강좌 - 액션 스크립트 에서 배운 내용을 약간 응용해봅시다.
이번엔 대각선 방향으로 움직이게 해봅시다.

_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;
}

첨부파일

위치제어문제.fla (16.5 KB) 10회 2004-06-24 10:23
|
댓글을 작성하시려면 로그인이 필요합니다.

그누3 팁자료실

1,026건
+
제목 글쓴이 날짜 조회
04-06-28 조회 2,942
04-06-27 조회 3,229
04-06-26 조회 3,035
04-06-25 조회 3,020
04-06-25 조회 3,338
04-06-25 조회 2,878
04-06-25 조회 3,038
04-06-25 조회 2,772
04-06-25 조회 2,731
04-06-25 조회 3,308
04-06-24 조회 2,656
04-06-24 조회 2,638
04-06-24 조회 2,854
04-06-23 조회 2,836
04-06-23 조회 2,827
04-06-23 조회 2,878
04-06-23 조회 3,024
04-06-23 조회 3,484
04-06-22 조회 4,209
04-06-21 조회 3,207