ashstampede
Programmer
Hi I am trying to use a Combo Box that will call a calander component with the onChangeHandler.
I want it so when the user clicks the combo box a calander shows up, the user then selects there date and that date will be the current label value of the combo box.
I am using Flash MX and actionscript 1.0 so this is what i tried with no succes and was just a basic shot in the dark.
Also i was playing with the idea if i place the Calander on the stage already and just have the combo box call it to view that might be the simplest thing. but how do i hide things on the stage to be called and use later?
Sorry if these seem very basic question i am completly new to flash.
I want it so when the user clicks the combo box a calander shows up, the user then selects there date and that date will be the current label value of the combo box.
I am using Flash MX and actionscript 1.0 so this is what i tried with no succes and was just a basic shot in the dark.
Code:
function cmbHandler(component){
var cal = FCalendar;
_parent.createEmptyMovieClip(cal_mc,1);
cal_mc.loadMovie(cal);
component.addItem("Select Date",cal_mc);
component.setLabel(cal.getSelectedItem());
}
Sorry if these seem very basic question i am completly new to flash.