# Loops in flash (slowing them down)

**URL:** https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264
**Category:** flash
**Created:** [July 10, 2003, 11:56pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264 "2003-07-10T23:56:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cheddar](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cheddar/32/267_2.png) [@cheddar](https://forum.kirupa.com/u/cheddar)
#### Post date: [July 10, 2003, 11:56pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264/1 "2003-07-10T23:56:59Z")

</div>

Can anyone tell me how I would go about slowing down a loop in flash mx.

I was trying to achieve a simple effect where the user clicks a button a object moves slowly across the page until it reaches a destination I set.

I sort of got it to work by using a loop and changing the x position through that. The problem is that flash wizzes through the loop so it appears that the object just jumps from one position to the final position.

Is there anyway to slow down a loop or some method of telling flash to wait for a set amount of time.

Thanks.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2003, 2:24pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264/2 "2003-07-11T14:24:00Z")

</div>

loops are processed in one frame. For operations over time, you would perform then in an onClipEvent(enterFrame) or onEnterFrame event.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2003, 2:52pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264/3 "2003-07-11T14:52:45Z")

</div>

Thanks for the help.

I had a look around and from what I can tell if I didnt want to use the ‘onClipEvent(enterFrame)’ method then the alternative would be to use the setinterval command.

I had a look at that command and couldn’t figure it out at all. I’m amazed that someone has not created a function that will enable you to move a movie clip anywhere on the stage and also specify the speed at which you want it to move. This would be SO useful.

Any actionscript wizards out there?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2003, 4:19pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264/4 "2003-07-11T16:19:30Z")

</div>

Steady motion (Just put it in an enterFrame):

[http://www.flash-france.com/actionscript.php?action=ViewProto&Protoid=69](http://www.flash-france.com/actionscript.php?action=ViewProto&Protoid=69)

If you want easing, there’s a tute here.

pom 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2003, 6:00pm UTC](https://forum.kirupa.com/t/loops-in-flash-slowing-them-down/25264/5 "2003-07-11T18:00:28Z")

</div>

> \*Originally posted by Ilyas \*  
> \*\*Steady motion (Just put it in an enterFrame):

> **[\_Flash-France\_ Portail Francophone sur FLASH, Tutoriaux, Forums, Ressources.](http://www.flash-france.com/actionscript.php?action=ViewProto&Protoid=69)**
>
> Flash-France portail français de Flash et des technologies shockwave. Un site comprenant des tutoriaux, films, animations, des FLA, des mp3, des WAV des polices de caractères des forums tout pour apprendre flash pour les débutants

If you want easing, there’s a tute here.

pom 🙂 \*\*

Thanks for the help, i’ll take a look.
