# Action Script 2 to AS 3 Migration! Help!

**URL:** <https://forum.kirupa.com/t/action-script-2-to-as-3-migration-help/319042>\
**Category:** flash\
**Created:** [February 7, 2011, 3:12pm UTC](https://forum.kirupa.com/t/action-script-2-to-as-3-migration-help/319042 "2011-02-07T15:12:13Z")\
**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 7, 2011, 3:12pm UTC](https://forum.kirupa.com/t/action-script-2-to-as-3-migration-help/319042/1 "2011-02-07T15:12:13Z")

</div>

[FONT=Lucida Sans Unicode][COLOR=green]Hi! i am currently migrating some of my Action script 2.0 code to AS 3.0 and I need some help converting this line of code[/COLOR][/FONT]  
[FONT=Lucida Sans Unicode][/FONT]  
[FONT=Lucida Sans Unicode]function newAlert (alertTxt:String, alertType:String, trkName:Object):void {[/FONT]  
setBtnState(alertsWin.portVab22, “active”);  
setBtnState(alertsWin.expand\_mc, “active”);  
vabOn("portrait, “portVab22”);  
var alertStr:String = alertTxt.toUpperCase();

[COLOR=green]If you could give me some guidance that would be great![/COLOR]  
[COLOR=green]Thank you so much for your time and help[/COLOR]
