AS2 is short for ActionScript 2, the scripting language Adobe Flash used to power interactive content. It was the standard for most browser games through the mid-2000s.
It was later replaced by ActionScript 3, which ran faster and enforced stricter, more object-oriented structure — which is why AS3 rewrites were common for games that needed better performance. With Flash officially retired, both versions now only run through preservation-focused emulators such as Ruffle, though support for AS2 has lagged behind AS3.