# As2 to as3

**URL:** <https://forum.kirupa.com/t/as2-to-as3/329442>\
**Category:** flash\
**Created:** [August 29, 2012, 10:44am UTC](https://forum.kirupa.com/t/as2-to-as3/329442 "2012-08-29T10:44:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lexlutha](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@Lexlutha](https://forum.kirupa.com/u/Lexlutha)\
**Post date:** [August 29, 2012, 10:44am UTC](https://forum.kirupa.com/t/as2-to-as3/329442/1 "2012-08-29T10:44:46Z")

</div>

Has anybody got the brains to convert this AS2 to AS3?

clips.push(createEmptyMovieClip(“container”+j,j++));  
clips\*.attachMovie(clip,clip,0);  
clips\*.\_x=startX;  
clips\*.\_y=startY;  
clips\*.angle=i;  
var index=width/slices;  
var mask=drawMask(clips\*,index,height);  
mask.\_x=i_index;  
mask.\_y=0;  
clips_.setMask(mask);  
clips\*.onEnterFrame=function(){  
oscillate(this);  
}

Many thanks

Lex
