I've managed to find the DateChooser component in flash, but I'm unsure as to what to do with it.
I've looked for a tutorial, or some sort of guide, but all I can find is people trying to sell flash calendars.
Any help would be great, I'm really trying tog et this project finished.
Thanks
Largo
//The Beat Club
---------------------------------------------------
UPDATE:
I've started work on this myself. Below is the code I am using. I will update this as and when the code updates.
If you can point out anything in the code, please do so. It is here as a resources for others too.
var dcListener:Object = new Object(); dcListener.change = function(evt_obj:Object) { var thisDate:Date = evt_obj.target.selectedDate; var month_array:Array = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); var month_str:String = month_array[thisDate.getMonth()]; var currentDOM = thisDate.getDate(); var currentMonth = month_str; var currentYear = thisDate.getFullYear(); trace(+currentDOM+currentMonth+currentYear); event1 = new XML(); event1.onLoad = event1Loaded; event1.load("xml/"+currentDOM+"-"+currentMonth+"-"+currentYear+".xml"); event1.ignoreWhite = true; if (success) { trace("NO ERROR!!! XML stuff goes in here, get attributes ect. Another success check will be needed too."); } else { eventTitle.text = "No event for this date."; eventLocation.text = "N/A"; eventTime.text = "N/A"; eventInfo.text = "There is no event for this date. Please check later as this may update. In the mean time, check out our forums! <a href=\"forums/forums.php\">Click here</a>"; multimap.text = "No map information available"; } if (thisDate == undifined) { var today_date:Date = new Date(); var date_str:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear()); eventDate.text = date_str; } else { eventDate.text = (thisDate.getDate()+"/"+(thisDate.getMonth()+1)+"/"+thisDate.getFullYear()); } }; my_dc.addEventListener("change", dcListener);
Edited by Largo .//npc, 03 April 2007 - 09:05 AM.