# Problems in my audio player (Tween)

**URL:** <https://forum.kirupa.com/t/problems-in-my-audio-player-tween/268163>\
**Category:** flash\
**Created:** [August 11, 2008, 4:25am UTC](https://forum.kirupa.com/t/problems-in-my-audio-player-tween/268163 "2008-08-11T04:25:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stereosushi](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@stereosushi](https://forum.kirupa.com/u/stereosushi)\
**Post date:** [August 11, 2008, 4:25am UTC](https://forum.kirupa.com/t/problems-in-my-audio-player-tween/268163/1 "2008-08-11T04:25:16Z")

</div>

I want to make a smooth movement when i click on anywhere in my seek bar.  
So i come up with an tween which is below.  
I have a mask called tbMask which is stays beside timeBar.

ActionScript Code:

```auto
new mx.transitions.Tween(timeBar, "_xscale", mx.transitions.easing.None.easeOut, 0 , tbMask._xmouse, 2, true);

```

So basically this would make timebar stretch to tBmask’s \_xmouse which has same x (170).  
But it dont! It exceeds about 50% where i clicked and go back to \_xmouse.

Far from this problem, the anothers are;  
I call this swf from my main swf. Tween function works when i try to view my main.swf but it dont work when i call player.swf from browser.

Any opinion appreciated.  
Thanks  
K
