Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UICombo box component calling a Calendar component 1

Status
Not open for further replies.

ashstampede

Programmer
Aug 30, 2004
104
GB
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.

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());
}
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 am unsure what you are trying to do

is calendar selection an option in the combo box?
 
Just to be sure you did add the function cmbHandler to the change handler in the combo box properties didn't you?
 
calendar is a component of Flash Ui component set 2 and yeah i did add that to the change handler property for the combo box.

what i am trying to do is when you click on the combo box a calander pop up you click that date and the date selected will be the label for the combo box. which i will later retrieve.
 
that is not quite what i want to do, actully what i want to do is simular to reservation sites, like when you are booking a plane ticket online and it ask you what dates you want to fly some have the calanders.
but if you can zip up the fla bill, i think i can tinker with it to make it work how i would like.
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top