Skip to main content
Participant
May 26, 2023 5:55 AM UTC
Answered

JSFL's javascript version is still outdated.

I've been tacking JSFLs for quite a bit now, and it's honestly such a fun feature that I can reccomend to everyone. It really helps me know how to program and tackle coding issues in such a fun way.

 

However, it seems like I can't write in modern javascript code inside JSFL files without being given errors. The main example is when I use template literals, which was introduced in ECMAScript 6. I should have thought so, since the only PDF I can find on JSFLS dated back to somewhere around 2008. The backtick (`) is considered an illegal character. While I can substitute template literals for something alongside using strings and pluses ( "This is text with a " + variable + "!" ), I feel like template literals would make coding more precise JSFL files much cleaner and professional, and would add in features that I'm not aware of yet.

 

I really hope for a bright future for JSFLs because they are such a fun potential for extending Adobe Animate to great lengths!

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
May 26, 2023 12:31 PM UTC

these are user-to-user forums.

 

 for applicable apps, you can make (some) suggestions to adobe here, https://helpx.adobe.com/ie/x-productkb/global/how-to-user-voice.html

 

for others, use https://www.adobe.com/products/wishform.html

4 replies

Mario_CR
Community Expert
Community Expert
May 26, 2023 4:54 PM UTC

The JSAPI documentation can be found in the developer's console: https://developer.adobe.com/animate/

 

Here's the direct link: 

https://github.com/AdobeDocs/developers-animatesdk-docs/blob/master/index.md

Translate
Multoman
Inspiring
May 26, 2023 4:08 PM UTC

You can write js code using the es6 and higher language standard, and then simply convert the code you wrote to the old es standard. You can use the following convectors:

1. Babel
2. Traceur
3. TypeScript
4. Google Closure Compiler
5. UglifyJS
6. es6-shim
7. es6-promise
8. core-js

Translate
Legend
May 26, 2023 2:33 PM UTC

Coding JSFL scripts has always been the opposite of fun for me, because the API is such a chaotic, capricious, ad hoc mess. If you want to have fun with JavaScript and insist on using all the goofy new ES6 features, JSFL is just about the last place you should be looking to do it.

Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 26, 2023 12:31 PM UTC

these are user-to-user forums.

 

 for applicable apps, you can make (some) suggestions to adobe here, https://helpx.adobe.com/ie/x-productkb/global/how-to-user-voice.html

 

for others, use https://www.adobe.com/products/wishform.html

Translate