|
|
|||
Flash Player 7
listenerObject = new Object();
listenerObject.recordInit = function( eventObject ){
// insert your code here
trace(eventObject.id);
}
myfTemplate.addEventListener("recordInit", listenerObject )
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.
searchString - String. Requested search string if it exists.
Event. Broadcast to all registered listeners when the template record is initialized.
The following code will tween the record movieclip whenever it is initalized:
myListener = new Object();
myListener.recordInit = function( eo:Object ){
fcms.Tools.tween( eo.mc, {
prop: "_x",
init:36 + 200,
end:36,
duration:80,
easing:mx.transitions.easing.Bounce.easeInOut
});
}
myfTemplate.addEventListener("recordInit", myListener);