Skip to main content
May 1, 2006
Question

Can't the the playback head to start playing again

  • May 1, 2006
  • 2 replies
  • 215 views
I've got a slider bar that I'm using to scrub the playback head. I also have a stop and a play button. The Stop and Play buttons have something like

on (release) {
_root.play();
}

and the script in the scrub bar is this :


this.ratio = 50;
dragger.onPress = function()
{
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function()
{
ratio = Math.round(this._x * 100 / line._width);
_root.gotoAndStop(Math.round((ratio * _root._totalframes) / 100));
};
};
dragger.onRelease = dragger.onReleaseOutside = stopDrag;
dragger.onEnterFrame = function()
{
this._x = Math.round(100 * _root._currentframe / _root._totalframes);
};

My problem is that the start and stop buttons stop working as soon as I use the scrub bar button ("dragger").

Can someone kindly point out the error of my ways?
Thanks.
This topic has been closed for replies.

2 replies

Participating Frequently
May 1, 2006
hmmm... why do you need the onEnterFrame there?
can you describe in more details on exactly what you want to achieve?
Participating Frequently
May 1, 2006
dragger.onRelease = dragger.onReleaseOutside = this.stopDrag;

have not tested it but that seems logical