Haxe provides a similar syntax to ActionScript, but it was OpenFL built on top of Haxe that provided similar APIs.
https://www.openfl.org/