Code: Select all
subtract duration of player "My Video" from currenttime of player "My Video" Thanks a lot!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
subtract duration of player "My Video" from currenttime of player "My Video" Code: Select all
on playStarted
whatTime
end playStarted
on whatTime
put (the currentTime of me/the timeScale of me) into tCurrent
put (the duration of me/the timeScale of me) into totalSeconds
put round(totalSeconds - tCurrent) into fld 1
send whatTime to me in 1 second
end whatTimeCode: Select all
on playStarted
whatTime
end playStarted
on whatTime
put (the currentTime of me/the timeScale of me) into tCurrent
put (the duration of me/the timeScale of me) into totalSeconds
put round(totalSeconds - tCurrent) into fld 1
if fld 1 <= 0 then exit whatTime
send whatTime to me in 1 second
end whatTimebesides from what Simon said, you really should think this logics over!RoryJMcEwan wrote:Code: Select all
subtract duration of player "My Video" from currenttime of player "My Video"