# Converting code snip from as2 to as3

**URL:** <https://forum.kirupa.com/t/converting-code-snip-from-as2-to-as3/268083>\
**Category:** Uncategorized\
**Created:** [August 9, 2008, 2:25am UTC](https://forum.kirupa.com/t/converting-code-snip-from-as2-to-as3/268083 "2008-08-09T02:25:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenmarold](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kenmarold](https://forum.kirupa.com/u/kenmarold)\
**Post date:** [August 9, 2008, 2:25am UTC](https://forum.kirupa.com/t/converting-code-snip-from-as2-to-as3/268083/1 "2008-08-09T02:25:16Z")

</div>

I’m trying to create a menu that slides around with this bit of actionscript, it’s an earlier version but I would really like to convert it to 3.0, but at this stage in the [game](http://www.actionscript.org/forums/showthread.php3?t=179495#) I don’t have a real idea on how to do it. I’d really appreciate it if anyone would be willing to help out and convert this over to 3.0 for me, I’ve been trying for awhile now, but am completely lost. ![](http://forum.kirupa.com/uploads/kirupa/525/d5236136df0858f4.gif)

nome\_starty = eval(this.\_parent).\_y;  
nome\_movedy = \_parent.\_parent[“nome” + \_parent.n].\_y + \_parent.\_parent[“nome” + \_parent.n].mask.\_height + 20 - nome\_starty;  
eval(this.\_parent).\_y = nome\_starty + nome\_movedy / 3;  
\_parent.name = this.\_parent.\_name;  
\_parent.n = Number(\_parent.name.charAt(4)) - 1;  
mask\_starth = eval(\_parent.mask).\_height;  
mask\_movedh = \_parent.mask\_targeth - mask\_starth;  
eval(\_parent.mask).\_height = mask\_starth + mask\_movedh / 4;
