dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Scrubber code needed

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    8

    Question Scrubber code needed

    Hi guys, me again!

    Ive just created my own custom scrubber using this tutorial, however, the code doesnt work with my flvplayback component.

    Can anyone suggest some code to get my seek bar working please?

    Cheers

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    i dont use that component, but if using a standard Video object, you can just use the seek method.
    PHP Code:
    var percent:Number whatever.something;
    video.seek(videoLength percent); 

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    8
    I used the code you gave me, however, flash came up with this output error:

    VideoError: 1003: Invalid seek
    at fl.video::VideoPlayer/seek()
    at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
    at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::finishAutoResize()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()


    Im at a loss as to where to go from here...

  4. #4
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    that was psuedo-code - obviously none of the variables are specified (whatever.x, something, video, videoLength). you'd have to customize it to whatever you're using.

  5. #5
    Junior Member
    Join Date
    May 2010
    Posts
    8
    Thanx for the advice; I did know this already. As you said, its obvious.

    I had entered the variables specific to my own video; Whether I entered the right information in the right places is a different matter...

    I have linked three videos to the playback component so what variable should I enter for videoLength?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center