Skip to main content
BioME
Known Participant
August 12, 2019
Question

Time Counter

  • August 12, 2019
  • 1 reply
  • 1555 views

So I'm converting my SWFs into MP4s and composing HTML/CSS/JS to restore user control.  This entails designating the seconds of playback where the MP4s need to stop.  Is it possible to program a counter in the ActionScript, so that if the first stop occurs after 6 seconds, the counter would report that?  If the second stop occurs at 8.5 seconds, it reports that, and so on.  If so how?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 13, 2019

you can't use actionscript in mp4's and you can't use actionscript in js so i'm not sure what you're trying to do.

BioME
BioMEAuthor
Known Participant
August 13, 2019

I'm converting the SWFs into MP4s.  Then I'm composing HTML/CSS/JS to control the MP4s.  So no, I'm not trying to control an MP4 with ActionScript; I'm replacing ActionScript with JS.  Trouble is with JS you can't designate frames to stop or goto the way you can with ActionScript.  With JS you have to designate playback time, and determining those time points has proven to be a very cumbersome and time consuming process.  So I'm searching for a more efficient method.  My idea is to use actionscript to program an SWF to report how much playback time has elapsed when a stop point is reached.  So if the first stop point occurs at 6 seconds, the number 6 would appear somewhere on the screen.  Then, after I convert the swf into an mp4, I can use JS to program the mp4 to stop at 6 seconds.  So my question for the forum is, is it possible to program an swf to report how much playback time has elapsed.

I hope that clarifies the question.  If not please let me know.

kglad
Community Expert
Community Expert
August 13, 2019

RE: "My idea is to use actionscript to program an SWF to report how much playback time has elapsed when a stop point is reached. "

what's the 'stop' point?

and is the 'stop point' a property of your mp4's? eg, a cuepoint?  something else?