View Full Version : using winmedia.play in the same click as changing filename

Mar 30th, 2007, 02:51 PM
Hi all,

I'm currently in my first year at uni and am trying to create an online jukebox using winmedia but with my own buttons. I've got a strange problem with it at the moment!

I am trying to make it so that clicking on the name of the song changes the filename to play, AND plays it.

At the mo the filename updates ok, but it wont let me play the song without clicking on another button and calling the winMedia.play command at a seperate time to changing the filename.


WinMedia.FileName=selectAlbum +"-"+ selectTrack +".mp3" --the filename updates ok
document.WinMedia.play(); --this wont do anything unless called at a seperate time.

Has anyone got any ideas? Sorry to trouble you all!