# Play() doesnt work

**URL:** https://forum.kirupa.com/t/play-doesnt-work/285271
**Category:** Uncategorized
**Created:** [March 29, 2009, 8:41pm UTC](https://forum.kirupa.com/t/play-doesnt-work/285271 "2009-03-29T20:41:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)
#### Post date: [March 29, 2009, 8:41pm UTC](https://forum.kirupa.com/t/play-doesnt-work/285271/1 "2009-03-29T20:41:36Z")

</div>

i made a slider that can slide the main timeline while running the swf.  
the first function slides scales the bar and moves the handle along the path:

```auto

sliderF = function () {
 this.onEnterFrame = function() {
  currentFrame = _currentframe;
  slider._xscale = Math.floor((_currentframe*100)/totalFrames);
  handle._x = slider._width+slider._x;
 };
};
sliderF();

```

the next function drags the handle and slides the timeline:

```auto

handle.onPress = function() {
 delete onEnterFrame;
 handle.startDrag(true, 240, 10, 64, 10);
 this.onEnterFrame = function() {
  r = ((handle._x-67)*100)/sliderFull._width;
  currentFr = Math.floor(totalFrames*r/100);
  gotoAndStop(currentFr);
 };
 
};

```

to stop the drag i am using this:

```auto

handle.onRelease = handle.onReleaseOutside=stopDrag;

```

the problem is that i cant make it play again after i draged the handle…

simple play() doesnt work  
any Ideas?
