Link to home
Start Free TrialLog in
Avatar of jk-mc
jk-mc

asked on

scrubber (slider) navigation for .flv

hello,

im using flashMXPro2004, designing a cd-rom with external .flv being controlled by .swf's. I know there's 'media display' component that scrubs the .flv, but i want my own design and programming.

so, can anyone show me how to create a button that works as a scrubber for .flv video?, the .flv is using NetStream and Net Connection,

thanks
jk
ASKER CERTIFIED SOLUTION
Avatar of negatyve
negatyve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jk-mc
jk-mc

ASKER

hi negatyve,

thanks for replying, it works great, and if it's not too much to ask, i would like the buton to move along the _x axis in sync. with the .flv

i've used,
_root.slider_mc._x = _root.stream_ns.time();
but to no avail;

cheers
jk
time is a property, not a method:

_root.slider_mc._x = _root.stream_ns.time;

Avatar of jk-mc

ASKER

small problem ,

_root.slider_mc._x = _root.stream_ns.time;
is holding the button at a certain place, not allowing me to move it further along,

any ideas?
Are you using an event, like enterFrame, or a setInterval, to update the slider position?
Avatar of jk-mc

ASKER

eh well, i've got a movieClip called 'drag' in a movieClip called 'totalTimeLine',
and i've attached the following code to the button that sits within mc 'drag',


on (press) {
      this._parent.stop();
     this.startDrag(false, 0, 0, 201, 0);
}

on (release, releaseOutside) {
     this.stopDrag();
     _root.stream_ns.seek(this._x);
       this._parent.play();
      }

mc 'totalTimeLine' has 2 frames, on which
_root.slider_mc._x = _root.stream_ns.time;
is in frame 1, and a gotoAndPlay(1) is in frame 2.

the
this._parent.stop(); and
this._parent.play(); in the button allows it to move along the _x axis, but there's an unprofessional delay on mouse release for hald a second,

hope that all makes sense



Avatar of jk-mc

ASKER

negatyve,

i think im happy enough with what i've got,  
thats the 2nd time you've helped me, i appreciate it a lot,

jk
jk,

I hate to impose and excuse my duhness, but would you have a sample .fla file to share which provides a working example of your flv scrubber.  If you wish, please feel free to contact me at gwasny@telus.net

I'm new to Flash MX and online video, and struggling with the coding.

Thanks in advance,

Garrett