Hey guys, is there any way to manually update or call an event listener function?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Manually call event listener?
You can manually call an event listener function (it is just a lua function after all), but in order for it to work properly you would need to pass it lua tables with the appropriate information (or have a special case in code when tables are nil).
You should be able to update the event listener function at any time by simply removing the existing listener, attaching a new function, and re-adding the listener. Perhaps it's even possible just to set the function without removing/re-adding the listener, but I've never tried that.
views:1553 update:2011/11/28 11:38:31
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Send image to server with php
Corona SDK *IS* Compatible with new Amazon Kindle Fire
Is a website required?
eXp Jet 1.2
Ploons for iOS - Now Waiting for Review!
Culling
Function Request: SetParticleType
Corona SDK Simple Display Challenge
Camera not functioning as it should. (drag and drop code example)
yet another dumb question
Corona SDK *IS* Compatible with new Amazon Kindle Fire
Is a website required?
eXp Jet 1.2
Ploons for iOS - Now Waiting for Review!
Culling
Function Request: SetParticleType
Corona SDK Simple Display Challenge
Camera not functioning as it should. (drag and drop code example)
yet another dumb question
corona forums © 2003-2011