EventDispatcher:dispatchEvent
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: EventDispatcher
Description
Dispatches an event to this EventDispatcher instance.
EventDispatcher:dispatchEvent(event)
Parameters
event: (Event) the Event object to be dispatched
Example
function ButtonTextP9UDDT:onMouseUp(e)
if self.focus and self.isclicked then
local ec = Event.new("clicked")
self:dispatchEvent(ec) -- button was clicked
e:stopPropagation()
end
self.focus = false
self.isclicked = false
self:updateVisualState()
end