1 Reply Latest reply on Jan 10, 2008 6:13 AM by robdillon

    Time Convertion

    MughalShahzad
      global vDuration, vFrameLabel, SoundMemList, vSplitDur, vSplitMem,

      property pSoundChannel
      property pSoundMember
      property pCurrentTime

      on beginSprite me
      pSoundMember = member(vSplitMem)
      pSoundChannel = sound(1)
      pSoundChannel.queue(pSoundMember)
      end
      on prepareFrame me
      if pSoundChannel.isBusy() then
      pCurrentTime = pSoundChannel.currentTime
      percentPlayed = pCurrentTime / float(vSplitDur)
      end if
      member("Duration").text=EMPTY
      member("Duration").text= string(abs(percentPlayed))
      end

      I want to convert the value of pCurrentTime into seconds.

      Regards
      Shahzad