jansensan
12-22-2004, 04:08 PM
Hiyall! I have this combobox that I'd like the user to use (hm... bad phrasing...) to choose something. Once the item is selected, I want my MC that includes the combobox to be removed and depending on the choice of the user, a MC will be attached to the _root.
I have tried to read and understand many tutorials about comboboxes, but I guess I'm not quick or there was nothing about what I was looking for. here is my code so far, and I'll attach the .fla.
Anyone may tell me what to do?
onClipEvent (load) {
this.question_txt.text = "Please select a shape:";
}
onClipEvent (enterFrame) {
onSelect = function () {
var userChoice = this.selector_cb.getValue ();
trace (userChoice);
if (userChoice == null) {
this.question_txt.text = "Nothing is selected. Please select a shape:";
} else {
_root.attachMovie (userChoice, "shape_mc");
_root.selector_mc.removeMovieClip ();
}
};
}
I have tried to read and understand many tutorials about comboboxes, but I guess I'm not quick or there was nothing about what I was looking for. here is my code so far, and I'll attach the .fla.
Anyone may tell me what to do?
onClipEvent (load) {
this.question_txt.text = "Please select a shape:";
}
onClipEvent (enterFrame) {
onSelect = function () {
var userChoice = this.selector_cb.getValue ();
trace (userChoice);
if (userChoice == null) {
this.question_txt.text = "Nothing is selected. Please select a shape:";
} else {
_root.attachMovie (userChoice, "shape_mc");
_root.selector_mc.removeMovieClip ();
}
};
}