I thought about doing this for a while, I was a Flash gamedev as an indie then professionally.
Back then, once Flash projects start to scale up to get more commercial/competitive, the flash editor is no longer as useful for development and transforms to an assets creation platform that outputs loadable SWF files.
The code moves to use Air/Flex SDKs which were more or less equivalent to the tooling we nowadays get with Go/dotnet etc.
So while Flash was an amazing expression tool for learners/hobbyists and is amazing for gamejams since assets creation is part of the workflow, it did hold devs back at higher levels of production.
Many Flash devs moved to Haxe to continue creating on that platform and it managed to survive and thrive.