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

as files separate from fla?

Community Beginner ,
Feb 28, 2018 Feb 28, 2018

I was reading some documentation and for I understand it is possible to have the as files separate from the fla files. Does this mean that I can have like a template that hold the as3 code and just add objects and save it with a different name every time then creating the same kind of movie without having to retype the code?

thanks,

Arofa

263
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

correct answers 1 Correct answer

Community Expert , Feb 28, 2018 Feb 28, 2018

Yes, you could take that approach. A .as file is generally an ActionScript class and you can use it to represent the main stage if it extends the MovieClip class. Then, if you had the same objects on the stage, with the same instance names in each .fla variation, you would just apply that .as file as the root class. Note that there is the high probability of compile errors if objects are missing or named differently from project to project.

Translate
Community Expert ,
Feb 28, 2018 Feb 28, 2018

Yes, you could take that approach. A .as file is generally an ActionScript class and you can use it to represent the main stage if it extends the MovieClip class. Then, if you had the same objects on the stage, with the same instance names in each .fla variation, you would just apply that .as file as the root class. Note that there is the high probability of compile errors if objects are missing or named differently from project to project.

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 Beginner ,
Feb 28, 2018 Feb 28, 2018
LATEST

Thank you so much. I have seen some of your examples really good job.

arofa

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