1
Sistem Multimedia
oleh Ova Nurisma Putra, S.T.
2014
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)){
_xscale -=_xscale-100;
_x +=5;
}
if (Key.isDown(Key.LEFT)){
_xscale -=_xscale+100;
_x -=5;
}
if (this._x>600){
this._x=0;
}
}
onClipEvent (enterFrame) {
_x +=10;
if (this._x>600){
this._x=0;
}
}
2
Sistem Multimedia
oleh Ova Nurisma Putra, S.T.
2014
Interval Waktu
1. Buat layer baru, pada frame1 atau frame yang
diinginkan.
2. Ketikkan script berikut :
function stmik() {
play();
clearInterval(id);
}
id=setInterval(stmik,7500);