Skip to main content
Participant
January 30, 2017
Answered

How do you create OOP Actionscript 3 packages in Animate CC?

  • January 30, 2017
  • 1 reply
  • 552 views

In Animate CC , if I click New>Actionscript 3 and create an OOP Actionscript 3 package in the Action window, I get an error message : Packages cannot be nested. How can you use OOP in Animate CC?

This topic has been closed for replies.
Correct answer Colin Holgate

All AS3 package files are external .as files. You would start one by choosing File/New ActionScript 3.0 Class. You give the Class a name, and start typing away.

Back in the FLA you would select the associated symbol in the Library, and click the i button to show the symbol's properties. In there you can show the Advanced settings, and click on the Export for ActionScript box. Once you've done that you can enter in the same Class name you used before, to connect the symbol with its Class file.

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
January 30, 2017

All AS3 package files are external .as files. You would start one by choosing File/New ActionScript 3.0 Class. You give the Class a name, and start typing away.

Back in the FLA you would select the associated symbol in the Library, and click the i button to show the symbol's properties. In there you can show the Advanced settings, and click on the Export for ActionScript box. Once you've done that you can enter in the same Class name you used before, to connect the symbol with its Class file.