# Please help convert as2 to as3

**URL:** <https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344>\
**Category:** programming\
**Created:** [October 1, 2016, 9:25pm UTC](https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344 "2016-10-01T21:25:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11132](https://avatars.discourse-cdn.com/v4/letter/1/c68b51/32.png) [@11132](https://forum.kirupa.com/u/11132)\
**Post date:** [October 1, 2016, 9:25pm UTC](https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344/1 "2016-10-01T21:25:17Z")

</div>

duplicateMovieClip(“shape”, “shape” + i, 900 - i);  
setProperty(“shape” + i, \_yscale, getProperty(“shape” + (i - 1), \_yscale) - i \* 0.090909);  
setProperty(“shape” + i, \_xscale, getProperty(“shape” + (i - 1), \_xscale) - i \* 0.100000);  
setProperty(“shape” + i, \_alpha, 20 - i \* 0.100000);  
i = i + 1;

thx

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [October 1, 2016, 9:43pm UTC](https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344/2 "2016-10-01T21:43:29Z")

</div>

```auto
shapes[i] = new public::['shape']

shapes[i].scaleY = shapes[i - 1].scaleY - i * 0.090909
shapes[i].scaleX = shapes[i - 1].scaleX - i * 0.1
shapes[i].alpha = 0.2 - i * 0.001

i += 1

```
