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

AS3 | addFrameScript error with no script

Explorer ,
Jan 11, 2019 Jan 11, 2019

I use Animate CC 2019 (v19.1 build 349, in French).

I create a new AS3 document, either via:

File > New > ActionScript 3.0

– I compile (Ctrl+Enter): it works fine.

– I create a new clip in the library.

Export for ActionScript

Base class (default): flash.display.MovieClip

I compile (Ctrl+Enter): it works fine.

– I edit the clip properties:

Base class: flash.display.Sprite

So basically I turn my clip from MovieClip to Sprite.

When I compile (Ctrl+Enter): I get the following compilation error:

1180: Call to a possibly undefined method addFrameScript.

At this point, there is absolutely no line of code in the whole project, and more specifically inside the clip.

Turning library clips from MovieClip to Sprite was something I would do on a daily basis previously, and that had worked fine, until Animate CC 2019.

Now, if I create the new document via:

New from template > Animation > any of the built-in template

instead, and I repeat the same process (new clip turned to Sprite), I get no error.

(But I need first to remove all the example clips and layers before I start working, rather than starting with a blank document.)

What's the difference between a document created via File > New and another created with File > New from Template?

What's the source of the error in the first kind?

859
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 , Jan 11, 2019 Jan 11, 2019

Hi.

Go to the Document Settings (Ctrl/Cmd + J) and uncheck Use Advanced Layers.

Regards,

JC

Translate
Community Expert ,
Jan 11, 2019 Jan 11, 2019

Hi.

Go to the Document Settings (Ctrl/Cmd + J) and uncheck Use Advanced Layers.

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
Engaged ,
Jan 11, 2019 Jan 11, 2019

Darn! I keep missing my chance to use this ha ha...

advancedlayers.jpg

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 ,
Jan 11, 2019 Jan 11, 2019
LATEST

Hahaha!

I'll wait for you the next time!

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