# I know what I want to do... Just how do I do it?

**URL:** <https://forum.kirupa.com/t/i-know-what-i-want-to-do-just-how-do-i-do-it/288626>\
**Category:** flash\
**Created:** [May 19, 2009, 5:59am UTC](https://forum.kirupa.com/t/i-know-what-i-want-to-do-just-how-do-i-do-it/288626 "2009-05-19T05:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOLDfish\_74](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@GOLDfish\_74](https://forum.kirupa.com/u/GOLDfish_74)\
**Post date:** [May 19, 2009, 5:59am UTC](https://forum.kirupa.com/t/i-know-what-i-want-to-do-just-how-do-i-do-it/288626/1 "2009-05-19T05:59:42Z")

</div>

I want to do something really simple in flash in AS3 but I must be typing the wrong words into Google.

Basically I want to do this:  
Frame 1 -  
Create a shape and define its size by using a fixed height and a random number for the width

Frame 2 -  
Resize the shape width either smaller or larger by 1 pixel.

Then repeat frame 2 until the shape reaches a defined limit and then it reverses.

If anyone can point me in the direction of some good tutorials, that would be much appreciated.

Regards.
