# Text rolling

**URL:** <https://forum.kirupa.com/t/text-rolling/202914>\
**Category:** Uncategorized\
**Created:** [October 5, 2006, 7:43pm UTC](https://forum.kirupa.com/t/text-rolling/202914 "2006-10-05T19:43:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xelaxam](https://avatars.discourse-cdn.com/v4/letter/x/5e9695/32.png) [@xelaxam](https://forum.kirupa.com/u/xelaxam)\
**Post date:** [October 5, 2006, 7:43pm UTC](https://forum.kirupa.com/t/text-rolling/202914/1 "2006-10-05T19:43:29Z")

</div>

Here is my problem. It should be quite easy but i don’t know much about action script.

I want to make a text rolling from 99 to 0 and then start again and again.  
So I made a movie clip but i’m too lazy to write 99 , 98 , 97…

So I put a square for dynamic text (instance name ptchiffre) and an action layer.

That’s where i’m stuck…  
I tried something like:

x = “100-y\*5”;  
ptchiffre = “x”

here y should be the frame number

logicaly the mc would have only 20 frame…

But if you know something easier to do it you are free to let me know

xelaxam
