# Progressive API Drawn Rectangle? D:

**URL:** <https://forum.kirupa.com/t/progressive-api-drawn-rectangle-d/186233>\
**Category:** flash\
**Created:** [April 19, 2006, 11:49pm UTC](https://forum.kirupa.com/t/progressive-api-drawn-rectangle-d/186233 "2006-04-19T23:49:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doublethink](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@doublethink](https://forum.kirupa.com/u/doublethink)\
**Post date:** [April 19, 2006, 11:49pm UTC](https://forum.kirupa.com/t/progressive-api-drawn-rectangle-d/186233/1 "2006-04-19T23:49:33Z")

</div>

Trying to draw a simple rectangle dynamically and progressively using the drawing API.

I found senoculars awesome function, but it only works on objects of equal sides.

[http://www.senocular.com/flash/source.php?id=0.127](http://www.senocular.com/flash/source.php?id=0.127)

Can I modify this to make it work?

```auto
// square
createEmptyMovieClip('square',20);
square.time = 0;
square.speed = .01;
square.style = [1, 0xFFFFFF, 20];
square.anchors = [
    [1,1],
    [1,299],
    [299,299],
    [299,1]
];
square.onEnterFrame = drawShape;

```

[http://www.senocular.com/flash/files/progressivelydrawclosedshape.fla](http://www.senocular.com/flash/files/progressivelydrawclosedshape.fla)

Making those values Rectangular breaks the shape.

TIA!!! 🙂
