PDA

View Full Version : MediaPlayback Player8 scrub by script


theboyofspewn
01-07-2008, 05:14 PM
So, I have built an interface with a custom scrubber. The scrubber is currently being used to display time in FLVs and SWFs, and I now have the need to use it to display MP3 playback. I am working in AS2 publishing to Player8

The method I ended up taking to get it to display is to load the sound into the MediaPlayback component, and use the change event to broadcast the playback time and total time out to my custom interface. This also allows me to pause, stop and play as I need from my interface.

The problem I am having is that I cannot find a manner to control the scrubbing of the MediaPlayback from my custom scroller. The documentation lists an event that is fired when scrubbing starts, but does not list a method for scrubbing, nor a seek method. Does anyone know of a way to do this?

theboyofspewn
01-07-2008, 05:26 PM
I discovered the answer to my own question shortly after posting.

I noticed that the playheadTime property of the Media class was not read-only, which allows me to set it dynamically. So, I adjusted my script accordingly, and now my scrubber works.