How do you stop all the code until an event has fired?
First, I'm really sorry for the newbie question, but my book as useful as licking a toilet clean.
I am attempting to load a song in every iteration (of a loop), extract information (like id3 tags) and then move on to another song; but, I need event listeners to tell me when the song has loaded. So how do I stop the progress of the loop until the events have complete?
Thanks.