ACTION SCRIPT SISTEM MULTIMEDIA
FULLSCREEN :
fscommand("fullscreen",true);
EXIT :
on(release)
{
fscommand("quit",true);
}
LOAD MOVIE :
on(release)
{
loadMovieNum("video.swf",1);
}
SOUND :
Membuat Kelas Sound
mySound=new
Sound();
SOUND 1 :
on(release)
{
mySound.attachSound("suara1");
mySound.stop();
mySound.start();
}
SOUND 2 :
on(release)
{
mySound.attachSound("suara2");
mySound.stop();
mySound.start();
}
STOP :
on(release)
{
mySound.stop();
}
LOGIN MENU :
on(release)
{
if((user=="andika")&&(pwd=="stmik")){
gotoAndStop("Scene
3",1);
user="";
pwd="";
}else{
gotoAndPlay("Scene
2",1);
user="";
pwd="";
}
}
INPUT DATA DIRI
:
on(release)
{
gotoAndStop(2);
hasil = "NIM :" + nim
+ newline;
hasil += "Nama : " +
nama + newline;
hasil += "Kelas : " +
kelas + newline;
hasil += "Progdi : " +
progdi + newline;
hasil += "Alamat : " +
alamat + newline;
nim="";
nama="";
kelas="";
progdi="";
alamat="";
}
SCENE :
GotoAndStop
on(release)
{
gotoAndStop("Scene
2",1);
}
GotoAndPlay
on(release)
{
gotoAndPlay("Scene
2",1);
}
Ditulis oleh
sandal - Wednesday, January 16, 2013 - 2:32:00 PM
Belum ada komentar untuk "ACTION SCRIPT SISTEM MULTIMEDIA"
Post a Comment