fTemplate.save

Availability

Flash Player 8

Usage

listenerObject = new Object();
listenerObject.save = function( eventObject ){
	// insert your code here 
	trace(eventObject.id); 
}
myfTemplate.addEventListener("save", listenerObject )

Event Object Parameters

target - Movieclip. Reference to the movieclip (fTemplate instance) that triggers the event.
mc - Movieclip. Reference to the movieclip controlled by the fTemplate component.
id - Number. ID of the document.
documentType - String. Document type of the record.
data - Object. Reference to the object containing document data.
dates - Object. Reference to the object containing the creation and modification date of the document.

Description

Event. Broadcast to all registered listeners when the data of the current template is about to be saved.

Example

The following code will change the data of the title field of the current document just before it is saved:

var myListener:Object = {};
myListener.save = function( eo:Object )
{
	myTemplate.setData( "title", "New Title" );
}
myTemplate.addEventListener( "save", myListener );