can someone convert this as2 code to as3

square.onPress = function(){
if(_root.thing1._currentframe == 2){

_root.square.gotoAndStop(3);
}


plz and Thanks, I suck at as3, please leave comments in the code to help me out if you can