I am writing a small game in LC 6.5.2 so that I get faster image animations rather than LC 7 or 8. I am tring to play a sound file
but the "Play "filename" isnt supported on the LC release I am using.
I came accross the mobileControlCreate "player" control that I am having trouble in getting it to work. My code is:
Code: Select all
on openCard
put specialFolderPath("engine") & slash & "5.ogg" into soundgoal
mobileControlCreate "player", "sound"
put the result into sPlayerID
mobileControlSet sPlayerID, "filename", soundgoal
end openCard
Code: Select all
mobilePlaySoundOnChannel sound, channel, type
Many Thanks,
Matthew.
EDIT:
I have tried this but to no avail:
Code: Select all
put specialFolderPath("engine") & slash & "5.ogg" into soundgoal
mobileControlCreate "player", "sound"
mobileControlSet "sound", "filename", soundgoal
mobileControlDo "sound", "play"