Event.new
From GiderosMobile
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)