Sure it’s possible, but you can’t actually do it. Because you need a dedicated programer
I try to avoid recommending proprietary software but FYI the multimedia authoring tool formerly known as FutureSplash Animator which you presumably knew as Adobe Flash Professional (or perhaps Macromedia Flash before that) in fact lives on today as Adobe Animate and it can now target HTML5/SVG/WebGL/etc.
There are also many free/libre open source alternatives to it.