I think instead of learning Flash you're better off learning something like Haxe, which originated from an AS2 compiler and is often used to port old Flash projects. A lot of people who used to use Flash to develop games just moved onto Haxe + OpenFL.
Have, FlashDevelop, etc. You can probably still find the old versions of Macromedia Flash on Archive.org.