# Timeline drag bar not working in my script code

**URL:** https://forum.kirupa.com/t/timeline-drag-bar-not-working-in-my-script-code/283896
**Category:** Uncategorized
**Created:** [March 12, 2009, 8:05am UTC](https://forum.kirupa.com/t/timeline-drag-bar-not-working-in-my-script-code/283896 "2009-03-12T08:05:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DEVILSAN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DEVILSAN](https://forum.kirupa.com/u/DEVILSAN)
#### Post date: [March 12, 2009, 8:05am UTC](https://forum.kirupa.com/t/timeline-drag-bar-not-working-in-my-script-code/283896/1 "2009-03-12T08:05:08Z")

</div>

Hi i am flash animator but today i am playing with action script,

and i am in a situation and stuck,

i had my movie player label as movie in the main scene and it was referred by dragbar like this

```auto

setProperty(_root.player.drag.dragMC, _x, math.floor(Number(getProperty(_root.player.movie, _currentframe))/Number(getProperty(_root.player.movie, _totalframes))*200));
gotoAndPlay(up._currentframe - 1);

```

but later i moved the clip labeled movie to movie clip up1

so shouldnt be it like this ?

```auto

setProperty(_root.up1.player.drag.dragMC, _x, math.floor(Number(getProperty(_root.player.movie, _currentframe))/Number(getProperty(_root.up1.player.movie, _totalframes))*200));
gotoAndPlay(_currentframe - 1);

```

please help
