Field Summary |
public
| addEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| clickHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| focusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| killFocusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| removeEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| tabFocusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
|
Property Summary |
public
| dataProvider: Array (write)
|
| An array used to hold the data used by the calendar. Each element of the array holds an object, which contains two properties. The date property holds an instance of the Flash Date class. The data property can hold any value.
|
|
public
| dataProvider: Array (read)
|
| Gets the array used to hold the data used by the calendar.
|
|
public
| dateDisabledColor: Number (write)
|
| Sets the color of date text when the calendar is disabled, as described in the Label component.
|
|
public
| dateDisabledColor: Number (read)
|
| Gets the color of date text when the calendar is disabled, as described in the Label component.
|
|
public
| dateEmbedFont: Boolean (write)
|
| Sets whether the font for the date text will be embedded, as described in the Label component.
|
|
public
| dateEmbedFont: Boolean (read)
|
| Gets whether the font for the date text will be embedded, as described in the Label component.
|
|
public
| dateFontColor: Number (write)
|
| Sets the text color of dates, as described in the Label component.
|
|
public
| dateFontColor: Number (read)
|
| Gets the text color of dates, as described in the Label component.
|
|
public
| dateFontFace: String (write)
|
| Sets the font used for the dates, as described in the Label component.
|
|
public
| dateFontFace: String (read)
|
| Gets the font used for the dates, as described in the Label component.
|
|
public
| dateFontSize: Number (write)
|
| Sets the size of the font used for the dates, as described in the Label component.
|
|
public
| dateFontSize: Number (read)
|
| Gets the size of the font used for the dates, as described in the Label component.
|
|
public
| dayNames: Array (write)
|
| An array of 7 strings used to display the names of the weekdays in the calendar. The first weekday in the clendar is Sunday.
|
|
public
| dayNames: Array (read)
|
| Gets an array of 7 strings used to display the names of the weekdays in the calendar.
|
|
public
| headerDisabledColor: Number (write)
|
| Sets the color of header text when the calendar is disabled, as described in the Label component.
|
|
public
| headerDisabledColor: Number (read)
|
| Gets the color of header text when the calendar is disabled, as described in the Label component.
|
|
public
| headerEmbedFont: Boolean (write)
|
| Sets whether the font for the header text will be embedded, as described in the Label component.
|
|
public
| headerEmbedFont: Boolean (read)
|
| Gets whether the font for the header text will be embedded, as described in the Label component.
|
|
public
| headerFontColor: Number (write)
|
| Sets the text color of the header, as described in the Label component.
|
|
public
| headerFontColor: Number (read)
|
| Gets the text color of the header, as described in the Label component.
|
|
public
| headerFontFace: String (write)
|
| Sets the font used for the header, as described in the Label component.
|
|
public
| headerFontFace: String (read)
|
| Gets the font used for the header, as described in the Label component.
|
|
public
| headerFontSize: Number (write)
|
| Sets the size of the font used for the header, as described in the Label component.
|
|
public
| headerFontSize: Number (read)
|
| Gets the size of the font used for the header, as described in the Label component.
|
|
public
| markedColor: Number (write)
|
| Sets the background color of the special dates added to the calender.
|
|
public
| markedColor: Number (read)
|
| Gets the background color of the special dates added to the calender.
|
|
public
| monthNames: Array (write)
|
| An array of twelve strings used to display the names of the months in the calendar.
|
|
public
| monthNames: Array (read)
|
| Gets an array of twelve strings used to display the names of the months in the calendar.
|
|
public
| rolloverColor: Number (write)
|
| Sets the background color of the dates when the mouse moves over them.
|
|
public
| rolloverColor: Number (read)
|
| Gets the background color of the dates when the mouse moves over them.
|
|
public
| selectedColor: Number (write)
|
| Sets the background color of the dates when selected.
|
|
public
| selectedColor: Number (read)
|
| Gets the background color of the dates when selected.
|
|
public
| selectedItem: Object (read)
|
| Returns the object associated with the selected date, in the form described in the dataProvider property description.
|
|
public
| selectedItem: Date (write)
|
| Returns the object associated with the selected date, in the form described in the dataProvider property description.
|
|
public
| todayColor: Number (write)
|
| Sets the background color of the current date.
|
|
public
| todayColor: Number (read)
|
| Gets the background color of the current date.
|
|
public
| yearFormat: Number (write)
|
| Specifies how the year will be displayed in the calendar. A value of 4 will display in the format 2004, 3 will display '04, 2 will display 04.
|
|
public
| yearFormat: Number (read)
|
| Gets how the year is displayed in the calendar.
|
|
|
Constructor |
public
| Calendar (
Void)
|
|
|
|
Method Summary |
public
| addItem (
): Void |
| Adds a item to the calendar, consisting of a date and a data object. The date can be in the form of a single Date object, or passed as three separate parameters, year, month and date. In either case, the next parameter will be the data object. The item added will be put at the end of the array being used as a dataProvider.
|
|
public static
| create (
target: MovieClip, id: String, depth: Number, initObj: Object
): Calendar |
| Static method used to create an instance of a Calendar on stage at run time.
|
|
public
| removeAll (
Void
): Void |
| Removes all data that has been previously added to the calender, clearing any external array being used as a dataProvider.
|
|
public
| removeItem (
year: Number, month: Number, date: Number
): Void |
| Removes the item stored at the specified date.
|
|
public
| setDate (
): Void |
| Sets the current date of the calendar and displays that month. There are two ways to call this function. First, by passing it a date object of the date you want to change to. The other way is to pass in the year, month and date of the date you want to change to.
|
|
|
|