Using a JS library in Openfl

Hi,
I’d like to use GSAP, the Greensock tweening libraries made for JS (originally AS3): how do you link a JS library to an Haxe/Openfl project? Well, how do you make externs/wrappers? I am totally new to this.

I asked in the GSAP forum, and a moderator replied this:

"What do you need, just the externs? Those look similar to typescript definitions. Maybe you could modify them once we are finished with the definitions.

https://github.com/greensock/GSAP/blob/b3b57ff1e84cde04153abed4ca3dfcad50d70d38/gsap.d.ts "

Just because I have a grudge with greensock doesn’t mean I shouldn’t help you :sweat_smile:

Have you tried this?

Perhaps the OpenFL /lib directory would also help (as it has both Haxe and TypeScript versions of definitions)