How to delay playing a sound...

Tried doing a quick search on this, but I wanted to clarify how to delay playing an audio sound file..

Do I simply use the timer.performWithDelay function?

If someone could post an example using the audio.play command, that would be wonderful

Thank you :)

yes, you simply use timer function

local function listener (event)
print ( "listener called")
audio.play(b)
end

timer.performWithDelay (3200, listener)

Thanks, this is how I did it above... I'm sure there is another way, but this seemed to work great..

views:1416 update:2011/10/26 9:29:31
corona forums © 2003-2011