EventDispatcher:addEventListener

From GiderosMobile
Revision as of 10:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Registers a listener function and an optional data value so that the listener function is calle...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


Registers a listener function and an optional data value so that the listener function is called when an event
of a particular type occurs.

= EventDispatcher:addEventListener(typelistenerdata,)

'type: (string) The type of event. '
'listener: (function) The listener function that processes the event. '
data: (any) An optional data parameter that is passed as a first argument to the listener function. optional