EventsRecorder (ONLY commercially available)

Package:
Class:
Inheritance:
biz.flashscript.components.datechooser
public class EventsRecorder
AbstractCalendar extends Sprite
The EventsRecorder class is the base class for the DateChooser component. This component allows to store events and uses images. It is used as part of the EventChooser application. To create an instance of the DateChooser component place an instance of the component on the main timeline or call the EventsRecorder class (see example on this page).
Public Properties
Property Defined By
configXML : String
Specifies the configuration file for the calendar.
EventsRecorder
Public Methods
Method Defined By
All inherited methods of the AbstractCalendar class. N/A
Events
Event Defined By
All inherited events of the AbstractCalendar class. N/A
Property Detail

configXML property
configXML:String [read-write]

Specifies the configuration file for the calendar.

There is no default value.

Implementation

public function get configXML():String
public function set configXML(value:String):void
Constructor Detail
EventsRecorder ()  Constructor
public function EventsRecorder()
Creates a new instance of the EventsRecorder.
Examples
Create a new fla file and name it EventsRecorderExample.fla. Save the file in the same folder where the biz folder is located. Drag an instance of the EventsRecorder component on stage from the component menu and delete it. Place the configuration xml file into a folder named calendar. Then create an Actionscript file, name it EventsRecorderExample.as and place this script.

package 
{
	import flash.display.Sprite;
	import biz.flashscript.components.datechooser.EventsRecorder;

	public class EventsRecorderExample extends Sprite
	{
		private var evRecorder:EventsRecorder;

		public function EventsRecorderExample ():void
		{
			evRecorder = new EventsRecorder ();
			evRecorder.configXML = "calendar/config.xml";
			addChild (evRecorder);
		}
	}
}

Example of Configuration file

<?xml version="1.0" encoding="ISO-8859-1"?>
<config>
	<!-- URL's for the xml and php files -->
	<xmlfile>http://localhost:8888/datechooser/events.xml</xmlfile>
  	<phpfile>http://localhost:8888/datechooser/savexml.php</phpfile>
  	<!-- filenames to fill php file, NO URL's -->
  	<filename>events.xml</filename>
  	<filecopy>events_copy.xml</filecopy>
  	<!-- variables for background setting
  			true or false -->
  	<background>true</background>
  	<!-- color 1 for gradient -->
  	<backcolor1>0xFFFFFF</backcolor1>
  	<!-- color 2 for gradient -->
  	<backcolor2>0x336699</backcolor2>
  	<!-- linear or radial -->
  	<filltype>radial</filltype>
  	<!-- pad or reflect -->
  	<spreadmethod>reflect</spreadmethod>
  	<!-- focal point, 1 or -1 depnding on the site -->
  	<focalpoint>-1</focalpoint>
  	<!-- alpha setting -->
  	<backalpha>0.5</backalpha>
  	<!-- images for random image pick -->
  	<daycolor>0xffffcc</daycolor>
 	<dayfont>Baskerville Bold</dayfont>
 	<headfontdays>Baskerville Bold</headfontdays>
  	<titlefont>Baskerville Bold Italic</titlefont>
  	<eventfont>Baskerville Bold</eventfont>
  	<inputfont>Baskerville</inputfont>
  	<messagefont>Baskerville Bold Italic</messagefont>
  	<imagearray>
  		<image>images/image0.png</image>
  		<image>images/image1.png</image>
  		<image>images/image2.png</image>
  		<image>images/image3.png</image>
  		<image>images/image4.png</image>
  		<image>images/image5.png</image>
  		<image>images/image6.png</image>
  		<image>images/image7.png</image>
  		<image>images/image8.png</image>
  	</imagearray>
  	<!-- location of images -->
  	<imagepath>images/</imagepath>
</config>