Corona Cards functions with Objective-C?

This maybe a stupid question, but I just don’t know the answer to it as I’ve only coded in Lua and not Objective-C.  But can I code everything in Corona’s Lua format, such as backgrounds, buttons and animations, and then when the users presses the button; a function then is activated which can in turn, then activate another function in Objective-C?  Simpler question, Can a button in Lua trigger an action to be done in Objective C?   Or are the two platforms separated from interacting with each other.  

And yes, there is a situation where this would be needed, such as working with a third party platform as well as the other 2 platforms.

Thanks.

Also, if I’m not mistaken, using Corona Cards does not allow you to play sound since the media library is not available.  So would you be able to press a button that creates an animation using corona, then the native objective-c code plays a sound?

Gregory - there is a bridge between Lua and the host app, so you can definitely have them interact. You can see the docs on that here:

http://docs.coronalabs.com/daily/coronacards/ios/communication.html

As for audio, I’m pretty sure we do have audio in there, it’s just not using the media API/library.

Also, if I’m not mistaken, using Corona Cards does not allow you to play sound since the media library is not available.  So would you be able to press a button that creates an animation using corona, then the native objective-c code plays a sound?

Gregory - there is a bridge between Lua and the host app, so you can definitely have them interact. You can see the docs on that here:

http://docs.coronalabs.com/daily/coronacards/ios/communication.html

As for audio, I’m pretty sure we do have audio in there, it’s just not using the media API/library.

Hello,

Following the doc i tested sending message from Obj-C to Lua and it works fine, but cannot manage to get Lua to Obj-C works, not sure if due to missing to set delegate or else? i am not good at Obj-C.

Is it possible to have a sample project to demonstrate this?

Thanks.

Hello,

Following the doc i tested sending message from Obj-C to Lua and it works fine, but cannot manage to get Lua to Obj-C works, not sure if due to missing to set delegate or else? i am not good at Obj-C.

Is it possible to have a sample project to demonstrate this?

Thanks.