>It seems like JavaScript is the new ActionScript
Not even close.
Not even close.
The browser itself used to be too slow for many use cases which led to Flash filling in the gap, but thankfully that's rapidly changing with improved JIT VMs and HTML5 standardization efforts (WebRTC e.a.) all leading to the eventual demise of Flash.
Hence; JavaScript is the new ActionScript.
P.S. They're both just ECMAScript flavors so in that sense I would say they're very close ;)
Not really. That just happens to be the most common use of it.