# Problem with published tween

**URL:** <https://forum.kirupa.com/t/problem-with-published-tween/178904>\
**Category:** Uncategorized\
**Created:** [February 15, 2006, 6:48am UTC](https://forum.kirupa.com/t/problem-with-published-tween/178904 "2006-02-15T06:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cup\_of\_tea](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@cup\_of\_tea](https://forum.kirupa.com/u/cup_of_tea)\
**Post date:** [February 15, 2006, 6:48am UTC](https://forum.kirupa.com/t/problem-with-published-tween/178904/1 "2006-02-15T06:48:43Z")

</div>

In my swf, I have the following function sweepy which i call repeatedly to have a black rectangle continually move left to right:

```auto
import mx.transitions.Tween;
easeType = mx.transitions.easing.None.easeNone;
var begin = -160;
var end = 110;
var time = 2.85;
 
var mc = blue;
sweepy=function(){
 
sweepTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
blue.swapDepths(2);
}

```

Strangely, the rate at which the rectangle travels across the screen is different between just viewing the swf and seeing it within the published html page. It moves much slower when viewing with the browser until after about 2 minutes, then they move at the same rate. Any clue what’s the cause?
