Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Typo crashes gideros player — Gideros Forum

Typo crashes gideros player

papirosnikpapirosnik Member
edited September 2012 in Bugs and issues
If I (like as newbie in lua) write event.stopPropagation() instead event:stopPropagation() the gideros player just silent closes itself. It's actual only for Event.KEY_DOWN and Event.KEY_UP events.
In others events this typo is recognized.

For example:
self:addEventListener(Event.KEY_DOWN, self.onKeyDown, self)

function Button:onKeyDown(event)
if event.keyCode == KeyCode.Y then
event.stopPropagation()
end
end

Try press Y during execution and gideros player will become invisible.

Comments

  • Don't know about the crash, but I think the correct one is:
    event:stopPropagation()
    with ":" not "."
  • atilimatilim Maintainer
    I've already fixed that bug. (If an error occurs in key event, it aborts the player).
Sign In or Register to comment.