# Action Script 2 to 3 Migration. HELP!

**URL:** <https://forum.kirupa.com/t/action-script-2-to-3-migration-help/318921>\
**Category:** flash\
**Created:** [February 3, 2011, 3:27pm UTC](https://forum.kirupa.com/t/action-script-2-to-3-migration-help/318921 "2011-02-03T15:27:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steff1010](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@steff1010](https://forum.kirupa.com/u/steff1010)\
**Post date:** [February 3, 2011, 3:27pm UTC](https://forum.kirupa.com/t/action-script-2-to-3-migration-help/318921/1 "2011-02-03T15:27:02Z")

</div>

[FONT=Arial]I have a function that I am trying to migrate from action script 2.0 to 3.0. If someone could give me some help/guidance on where to begin that would be great! I’m stuck and I don’t want to be held up on this forever.[/FONT]  
[FONT=Arial]Thank you![/FONT]

[FONT=Courier New][COLOR=blue]function [COLOR=black]turnOnLineBtns () {[/COLOR][/COLOR][/FONT]  
[FONT=Courier New][COLOR=blue] var [COLOR=black]mouseList:[COLOR=blue]Object[/COLOR] = [COLOR=blue]new Object/COLOR;[/COLOR][/COLOR][/FONT]  
[FONT=Courier New] mouseList.[COLOR=blue]onMouseMove[/COLOR] = [COLOR=blue]function/COLOR {[/FONT]  
[FONT=Courier New][COLOR=blue] if(\_xmouse [COLOR=black]\< map\_mc[/COLOR].\_x) [COLOR=black]{[/COLOR][/COLOR][/FONT]  
[FONT=Courier New] alertsWin.line1\_mc.[COLOR=blue]useHandCursor[/COLOR] = [COLOR=blue]false[/COLOR];[/FONT]  
[FONT=Courier New] alertsWin.line2\_mc.[COLOR=blue]useHandCursor[/COLOR] = [COLOR=blue]false[/COLOR];[/FONT]  
[FONT=Courier New] alertsWin.line3\_mc.[COLOR=blue]useHandCursor[/COLOR] = [COLOR=blue]false[/COLOR];[/FONT]  
[FONT=Courier New] lineBtn\_arr[0].[COLOR=blue]hitArea[/COLOR] = alertsWin.line1\_mc;[/FONT]  
[FONT=Courier New] lineBtn\_arr[1].[COLOR=blue]hitArea[/COLOR] = alertsWin.line2\_mc;[/FONT]  
[FONT=Courier New] lineBtn\_arr[2].[COLOR=blue]hitArea[/COLOR] = alertsWin.line3\_mc;[/FONT]  
[FONT=Courier New] } [COLOR=blue]else[/COLOR] {[/FONT]  
[FONT=Courier New] lineBtn\_arr[0].[COLOR=blue]hitArea[/COLOR] = lineBtn\_arr[0].hitarea\_mc;[/FONT]  
[FONT=Courier New][FONT=Courier New] lineBtn\_arr[1].[COLOR=blue]hitArea[/COLOR] = lineBtn\_arr[1].hitarea\_mc;[/FONT]  
[FONT=Courier New] lineBtn\_arr[2].[COLOR=blue]hitArea[/COLOR] = lineBtn\_arr[2].hitarea\_mc;[/FONT]  
}  
}  
[/FONT]
