callEvent

calls an inner event

boolean callEvent(string name,array params);

Parameters

namestringthe event name, case-insensitive
paramsarraythe array of the event parameters

Returns

booleanfalse, if some of the event handlers return false. Otherwise, true

Example

// invokes triggering handlers of the 'onMoveError' event
var check = fmanager.callEvent("onMoveError", []);

Details

Normally, events are called automatically and you don't need to use this method.

See also
Back to top