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

Uncaught TypeError: cjs.MovieClip is not a constructor

New Here ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

Hi

 

I've created an interactive infographic in Animate which works fine when I test the movie in a web browser and when ipublish the OAM file in Indesign. However I can't get it to work on my website. 

 

I've copied the js code into my website the infographic doesn't render (no images appear) and I get the following error: Uncaught TypeError: cjs.MovieClip is not a constructor.

 

Uncaught TypeError: cjs.MovieClip is not a constructor
    at digestivesystem:1350:20
    at digestivesystem:3153:3

 

Would anyone have any advice as to how to fix this?

 

Thanks in advcance

 

Ellen

 

TOPICS
ActionScript , Code , Error

Views

131

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
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

where do you see that error?

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
New Here ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

@kglad thanks for replying. I inpect the page and I see this in the console tab:

 

Screenshot 2024-10-01 at 18.37.11.png

 

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
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

click the right-side link and copy and paste a few lines around 1350

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
New Here ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

I can't see the code when i click the right-side link, but this is the code around line 1350:

 

Screenshot 2024-10-01 at 20.40.09.png

 There is no code at 3153 as the last line of code is 1826

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
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

at the top of that on method add 

 

console.log(_this.Mouth_info)

 

and retest.

 

what's the console output?

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
New Here ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

Sorry not sure where you mean i should add the additional code! I added it here in Squarespaces code editor:

 

Screenshot 2024-10-01 at 21.06.32.png

The console output is this:

 

Screenshot 2024-10-01 at 21.10.48.png

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
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

add the code on animate

then test

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
New Here ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

I've added the code in Animate and it's the same. Console output at 1351 is:

 

Screenshot 2024-10-01 at 21.54.12.png

The code at line 1351 which relates to the Mouth info movie clip was from the code editor in Squarespace, not the Console output. So i'm now wondering if the Mouth info movie clip has nothing to do with this error?

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
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

what do you see when you click the right-side link?

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
New Here ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

I don't think it's changed:

 

Screenshot 2024-10-02 at 09.41.53.png

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
Community Expert ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

what's the relevent code in animate?

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
New Here ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

@kglad I wish i knew! How do i find this out?

Thanks for your help so far!

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
Community Expert ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

LATEST

where is your code?

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