Event.new
From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Available since: Gideros 2011.6
Class: Event
Description
Creates a new Event object to be dispatched from an EventDispatcher.
(any), (any) = Event.new(type)
Parameters
type: (string)
Return values
Returns (any) new Event object
Returns (any) new Event object
Example
User created event
local event = Event.new("myevent")
event.data1 = "12345"
event.data2 = "abcde"
mydispatcher:dispatchEvent(event)