Haven't done that in a long while but you used to be able to use Haxe as a compiler in combination of tools like swfmill converting and importing resources. Targeting flash was actually one of them primary usecases when haxe was initially released.

It's a bit different workflow than what the adobe tooling provides and in no ways a replacement for adobe animation tooling, but for a more programmer oriented workflow especially if you are using sprite based graphics it's not bad.

There was also FlashDevelop and later HaxeDevelop as IDEs (.NET based) that integrated the corresponding tooling. Both seem currently unmaintained. If you are on windows you might still be able to run the old builds. Otherwise for non flash based projects the vscode haxe extension is quite good, but might need a bit more manual build scripts for the flash stuff compared to prime time of FlashDevelop.

Well I don't exactly want flash as a platform, I just want a similar vector animation experience, raster graphics are not that

I think Synfig might work in that case.

Thanks, I'll check it out. Looking at the website, it looks promising