Mcm2 rupenye yg boleh dibuat oleh si flash ni..
Rasa2nye banyak gak design yg guna kaedah dialog box dlm internet.Oleh kerana dibuat dlm class, so alhamdulillah siap dan kat umh tinggal edit je..
So inilah hasil class activity ari 2
Step by step
1. Mula2 sy pilih kaler tuk background(hitam) then wat rect. shape n kalerkan dengan kaedah linear.
2. Gmbar micheal 2 import je dr mane2
3. Then guna text tool n type soalan yg dikehendaki.Pilih static text dari tool properties (kat bawah skali)
4. Tuk wujudkan box pilihan jwpn, click window>components.double click kat combo box di components. panel
5. kembali ke stge dan select boxyang tertera di stage. kemudian padaproperties panel, tukar "the instance name"kepada "box
6. click semula window>component inspector>data>
value box akan keluar.clic+utk menambah pilihan jawapan iaitu thriller,billie jean,bad,the way you make me feel.pastu click OK.
7. kemudian letakkan button submit.
8. slepas itu, pada frame yg sama, sya letakkan text box tuk respon jawapan betul or slh. pilih dynamic text dan pada properties, jgn lupe ltk jg as the variable.
9. pada button submit, click action dan letak coding
on (press) {
if (box.getValue()=="billie jean"){
jg="Sorry, wrong answer!please select again!";
}
if (box.getValue()=="bad"){
jg="Sorry, wrong answer!please select again!";
}
if (box.getValue()=="the way you make me feel"){
jg="Sorry, wrong answer!please select again!";
}
if (box.getValue()=="thriller"){
jg="CONGRATULATIONS!YOU'RE RIGHT";
}
gotoAndStop(1);
}
oo yea...it works...
ReplyDeleteThis comment has been removed by the author.
ReplyDelete