News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by grishka on Saturday May 15, 2021 @02:28PM (#27167653)
ActionScript is also an ECMAScript language, and it's kinda ridiculous to see that JS still hasn't quite caught up. Out of things that modern JS lacks, AS had Java-like interfaces and you could specify types on variables.

(Yes, I know about TypeScript.)

Re:Modern Javascript: Everything you missed over the last 10... by benrbray on Sunday May 16, 2021 @12:36AM (#27171261)
As someone who first learned to code with AS2/3, I agree it was quite disorienting when I first tried to make a few games with HTML5/JS.

I do think you're not giving TypeScript enough credit -- I felt right at home the first time I used TS, and the type system is much more sophisticated than anything ActionScript ever had. As long as you're of the "favor composition over inheritance" mindset, which I'd argue is better, even for games, TypeScript is a fantastic spiritual successor to ActionScript!

Unfortunately there's no TypeScript-based game engine that makes it so easy to combine code with animations / sound. Nothing has really filled the void that Flash left behind.