Flash has long been used to support features not-yet available in the DOM APIs such as copy/paste and video, and of course in ads. There's a huge difference between that and building Flash apps; apps where a flash-displayed interface is the primary way of using the app. Outside of games those were never very popular, JS had overcome it with Google Maps.