Interactive media Flash


ni adalah karya karya SLNSG  dalam FLash Actionscrip 
selamat melihat lihat 
Karya SLNSG No : 

action scrip /10/SCNSG263/2012

You are the maker of the program and which integrates data .... let's join here






klik gambar  SLNSG  di atas baru gerakan 
penunjuk arah ( up ,down, left, right)  
tekan huruf  A,  S , D untuk  melihat  jurus yang ada 


Jika  tidak jalan maka harus diunduh ( download ) dulu  




code Actionscrip   Flash  lewat  tombol bergerak 


on(rollOver){
gotoAndPlay(2)
}
on(rollOut){
gotoAndPlay(16)
}
on(release){
_parent.gotoAndPlay(2)
}
___________________________________________________________________________________

code Actionscrip   Flash  lewat  mengerakan karakter lewat keyboard


lapisan pertama :
on (keyPress "") {
karakter._x+=20;
karakter.gotoAndStop(2);
}
on (keyPress "") {
karakter._x-=20;
karakter.gotoAndStop(3);
}
on (keyPress "") {
karakter.gotoAndStop(4);
}
on (keyPress "") {
karakter.gotoAndStop(5);
}
on (keyPress "a") {
karakter.gotoAndPlay(6);
}
on (keyPress "s") {
karakter.gotoAndPlay(7);
}
on (keyPress "d") {
karakter.gotoAndPlay(8);
}

lapiasn 2 semua keyframe pake rumus

 stop();

lapisan 3  setiap akhir animasi

 _parent.gotoAndPlay(1);

---------------------------------------------------------------------------------------------------------------------


code Actionscrip   Flash  lewat  mengerakan karakter lewat keyboard cara  2 


lapisan satu
_root.onEnterFrame = function  (){
if (Key.isDown(Key.LEFT)){
_root.SLNSG._x -=3 ;
SLNSG.gotoAndStop(2);
}
else if (Key.isDown(Key.RIGHT)){
_root.SLNSG._x +=3 ;
SLNSG.gotoAndStop(3);
}
else if (Key.isDown(Key.UP)){
SLNSG.gotoAndStop(4);
}
else if (Key.isDown(Key.DOWN)){
SLNSG.gotoAndStop(5);
}
else if (Key.isDown(65)){
SLNSG.gotoAndStop(6);
}
else if (Key.isDown(83)){
SLNSG.gotoAndStop(7);
}
else if (Key.isDown(68)){
SLNSG.gotoAndStop(8);
}
}

lapisan 2 

stop();

lapisan  3 (untuk berulang ulang)

gotoAndPlay(3);

if (Key.isDown(Key.LEFT)){
gotoAndPlay(3);
}
else{ 
gotoAndPlay(13);
}

akhir  setiap lapisan 3
 _parent.gotoAndPlay(1);



Kode pada keyboard  from
http://bitly.com/W3IgyT




A =65
B =66
C =67
D =68
E =69
F =70
G =71
H =72
I =73
J =74
K =75
L =76
M =77
N =78
O =79
P =80
Q =81
R =82
S =83
T =84
U =85
V =86
W =87
X =88
Y =89
Z =90
0 =48
1 =49
2 =50
3 =51
4 =52
5 =53
6 =54
7 =55
8 =56
9 =57