ActionScript Reference
showMonth
addEvent
addRecurrentEvent
removeEvents
removeRecurrentEvents
setDayState
setDayValue
setGlobalRange
setXML
getCurrentMonth
formatDate
getSelected
getEvent
getEvents
getRecurrentEvent
getRecurrentRange
METHODS
Changes the currently displayed month.
showMonth(no)
no can be a negative or positive value, if no=0 the currently displayed month will be refreshed
addEvent(event_obj)
event_obj props:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
addRecurrentEvent(recurrent_event_obj)
recurrent_event_obj props:
recurrent properties listed here +
- state (default....)
- value (selected, disabled)
- content (String)
Removes either all events or events for a given date.
removeEvents(date)
Removes all recurrent events if type (year, month, week, day) is not specified.
removeRecurrentEvents(type)
Sets the state of the existing date button for the month currently displayed (without defining the event).
setDayState(date, state)
Sets the value of the existing date button for the month currently displayed (without defining the event).
setDayValue(date, value)
setGlobalRange(date1, date2)
setXML(xml_file)
getCurrentMonth()
Returns formatted date string for the Flash date object.
formatDate(date, format)
some format examples are:
"dd/mm/yy" (returns 4/7/04)
"mm-dd-YYYY" (returns 7-4-2004)
If the format is undefined, the Flash date object is returned
Returns date formatted string or array of formatted strings depending on whether multiple selection is allowed.
getSelected(format)
Returns an array of event objects of defined events(non-recurrent) for a given date.
getEvent(date)
Returns an array of all event objects (non-recurrent) or all objects with the state, if defined.
getEvents(state)
Returns an array of recurrent objects of defined recurrent events for a given date.
getRecurrentEvent(date)
Returns an array of arrays of recurrent objects of all recurrent events that are defined between two given dates.
getRecurrentRange(d1,d2)
EVENTS
onDateClick(mc,eobj,robj)
mc - reference to the calendar button movie clip that triggered the event
eobj - event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
robj - recurrent event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
- state (default....)
- value (selected, disabled)
- content (String)
onDateOver(mc,eobj,robj)
mc - reference to the calendar button movie clip that triggered the event
eobj - event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
robj - the recurrent event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
- state (default....)
- value (selected, disabled)
- content (String)
onDateOut(mc,eobj,robj)
mc - reference to the calendar button movie clip that triggered the event
eobj - event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
robj - recurrent event object of the calendar button movie clip that triggered the event with the following properties:
- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)
- state (default....)
- value (selected, disabled)
- content (String)
xmlCalendar.onXMLLoad()
Triggered when xml calendar definition is loaded