|
Prev: Materials won't export correctly from 3ds Max to Shockwave .w3d
Next: what algorithm behind random() function ?
From: MughalShahzad on 10 Jan 2008 04:59 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
From: Rob Dillon on 10 Jan 2008 09:13
The currenttime property is expressed in milliseconds. So, to get seconds, divide the value by 1000. |