1 Reply Latest reply on Jul 7, 2007 6:02 AM by nik c

    how can I check for 'undefined'?

    nik c

      I am creating a custom MP3 player where audio playback is started by clicking on the title of the audio, but I also want to be able to start play abck from the Play/Pause button. In order to implement this dual approach, I am thinking of checking if a sound has been loaded (with 'mySound.loadSound("path to sound") already by the my titleButton.

      I am thinking of doing this by checking the 'mySound.position' as that would be 'undefined' if there was no sound loaded.

      But how can I check it for being 'undefined', what woud be the syntax? Itexpects a number so I tried -1, but that didn't work.

      Or is there a better way?



      have a Play/Pause button and for it in order to