I’m just writing some helper stuff so that it can be reused across my games, one of these things is a very simple sound manager with a simple playlist. However I’m getting a very strange (at least to me, it’s probably a simple foolish thing that I have done) problem.
I have uploaded the code (and some small free .mp3s just for testing) to here - http://dl.dropbox.com/u/571145/Media.zip
Basically what happens is that when a song finishes it calls the onComplete event and then in the listener for this I am trying to call the next function yet it is saying that the method is nil yet as a test I’ve put in a print function that uses the getName function and that works fine. It’s easier to just look at the code though.
The offending lines are in sound.lua at line 49 (in the listener) and 134 (the next function). If anyone could have a look that would be great as I’m pulling my hair out to try to work out what I have done wrong.
Graham
[import]uid: 5833 topic_id: 1371 reply_id: 301371[/import]
