SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2007
    0 Post(s)
    0 Thread(s)

    OO JS and SoundManager2

    I will be the first to admit, I don't know much about JS and am just starting to wrap my mind around object oriented js.

    I have this small bit of code that has been giving me problems for days.

    playlistItems[numItems-1] = soundManager.createSound({
    id : songId,
    url : $(this).attr('href'),
    whileloading : player.whileloading,
    onfinish: next

    "next" is a function on the same object that playlistItems is defined on, but it doesn't ever seem to fire. I tried as well, but it just gives me a runtime error....

    Please help.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    101 Post(s)
    4 Thread(s)
    On the SoundManager2 documentation page I see that there's one called playNextSound
    Would that happen to be what you're after?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts