Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Class file

Participant ,
Dec 01, 2023 Dec 01, 2023

How do I call class file in action (javascript) in Animate with codes.

TOPICS
Code , How to
150
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2023 Dec 01, 2023

Hi.

 

You need to include the JavaScript file by going to Include section in the Actions Panel (F9).

image.png

 

Then you just declare/call/instantiate the variables, functions, and classes available in there.

 

Regards,

JC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2023 Dec 02, 2023
LATEST

note: you can add multiple classes in one class file if that suits your needs.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines