I made a button to play a sound every time it’s touched, it works fine on the simulator but not on my device…here’s how my code looks like:
[code]local Button1 = display.newImageRect(“Button1.png”,65,63)
Button1:setReferencePoint(display.TopLeftReferencePoint)
Button1.x = 245 ;Button1.y = 340
local function playSound (event)
media.playEventSound (“Sound.mp3”)
Button1.isVisible = true;
return true;
end
Button1:addEventListener (“tap”, playSound)
[import]uid: 30766 topic_id: 13609 reply_id: 313609[/import]