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

updated to Animate CC 2017 - now my lib is undefined

Participant ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Hi everyone!  Please help me shed some light on this - I've just updated to Animate CC 2017 (from Animate 2015.2) and suddenly the same script I've been running successfully breaks on the following:

var contents = new lib.contents();

error message reads 'lib' is undefined

Has anything changed in the way we access movieclips?

Thank you very much!

Views

731

Translate

Translate

Report

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

LEGEND , Aug 23, 2017 Aug 23, 2017

lib is no longer globally defined.

.html file shows blank

Votes

Translate

Translate
LEGEND ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

The HTML template may have changed. Go into Publish Settings, Advanced, and click the Use Default button if it's enabled.

If you have previously done custom HTML in the template you may need to redo those changes.

Votes

Translate

Translate

Report

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
Participant ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

I have done that, so that's not it...

I ended up bypassing that issue by using an entire exportRoot (which includes the movieclip in question) to gain access to it.  Just wondering what has changed that precludes me from accessing a specific movieclip though.

Votes

Translate

Translate

Report

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
LEGEND ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

lib is no longer globally defined.

.html file shows blank

Votes

Translate

Translate

Report

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
Participant ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

LATEST

Thank you!

Votes

Translate

Translate

Report

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