jjjjj
Step 1 : To create the the combo box like this we to click on window > component > combo box
state the name as box.
Step 2 : Click on window > component inspector then we key in the value in data as:
Step 3 : At component inspector then we key in the value in for data as in step 2.
Step 4 : Create the submit button, right click the key in the action script.
on (press) {
if(box.getValue()=="Billie Jean"){
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()=="Bad"){
jg="Sorry, wrong answer!Please select again !";
}
if(box.getValue()=="Thriller"){
jg="Congratulation! Thriller is Michael's first song to the air on MTV";
}
gotoAndStop(2);
}
Step 5 : Go to second frame the create the dynamic text box and set the var to jg.
Remember to put the action script stop ( ); at the second frame.
nice background...love the picture of him...
ReplyDeletei do enjoy last tuesday class...i'm sure Kak Zune too...
this is also a new thing to me since during my time we never had an experience learning dialog box using flash...i just know how to do it in dreamweaver je...
seronok giler...hik hik...
well, again it works...