ActionScript Reference



Methods

showMonth
addEvent
addRecurrentEvent
removeEvents
removeRecurrentEvents
setDayState
setDayValue
setGlobalRange
setXML
getCurrentMonth
formatDate
getSelected
getEvent
getEvents
getRecurrentEvent
getRecurrentRange

Events

onDateClick
onDateOver
onDateOut
onXMLLoad

 

METHODS

showMonth

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

addEvent(event_obj)

event_obj
props:

- date (date object)
- state (default....)
- value (selected, disabled)
- content (String)


addRecurrentEvent

addRecurrentEvent(recurrent_event_obj)

recurrent_event_obj
props:

recurrent properties listed here +
- state (default....)
- value (selected, disabled)
- content (String)

removeEvents

Removes either all events or events for a given date.

removeEvents(date)

removeRecurrentEvents

Removes all recurrent events if type (year, month, week, day) is not specified.

removeRecurrentEvents(type)

setDayState

Sets the state of the existing date button for the month currently displayed (without defining the event).

setDayState(date, state)

setDayValue

Sets the value of the existing date button for the month currently displayed (without defining the event).

setDayValue
(date, value)

setGlobalRange

setGlobalRange(date1, date2)

setXML

setXML(xml_file)

getCurrentMonth

getCurrentMonth()

formatDate

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

getSelected

Returns date formatted string or array of formatted strings depending on whether multiple selection is allowed.

getSelected(format)


getEvent

Returns an array of event objects of defined events(non-recurrent) for a given date.

getEvent(date)

getEvents

Returns an array of all event objects (non-recurrent) or all objects with the state, if defined.

getEvents(state)

getRecurrentEvent

Returns an array of recurrent objects of defined recurrent events for a given date.

getRecurrentEvent(date)

getRecurrentRange

Returns an array of arrays of recurrent objects of all recurrent events that are defined between two given dates.

getRecurrentRange(d1,d2)

 

EVENTS


onDateClick

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

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

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)


onXMLLoad

xmlCalendar.onXMLLoad()

Triggered when xml calendar definition is loaded