# Controlling the Speed of a Xscale

**URL:** <https://forum.kirupa.com/t/controlling-the-speed-of-a-xscale/284592>\
**Category:** flash\
**Created:** [March 20, 2009, 3:44pm UTC](https://forum.kirupa.com/t/controlling-the-speed-of-a-xscale/284592 "2009-03-20T15:44:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robmcmon](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@robmcmon](https://forum.kirupa.com/u/robmcmon)\
**Post date:** [March 20, 2009, 3:44pm UTC](https://forum.kirupa.com/t/controlling-the-speed-of-a-xscale/284592/1 "2009-03-20T15:44:44Z")

</div>

I have a perctenage bar that loads up using Xscale. But my problem is it goes to the point and doesn’t animate into the point its supose to stop at. Does anyone know how I can control the speed of it?? Thanks in advance :o)

```auto

var peep1pct=(peep1loaded/peep1total);
peepbar1_mc.bar1_mc.scaleX=peep1pct;
peep1loaded_txt.text=(Math.round(peep1pct*100))+"%";

```
