convert as3 syntax to java like