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

Animate Adding audio file creates javascript error on publishing HTML5 canvas

New Here ,
Feb 08, 2024 Feb 08, 2024

Copy link to clipboard

Copied

Hi, i am making a game in Animate i want sound playing automaticly. I import mp3, waw format to library, also in the scene but when i tried to publish i got an error a javascript error occured. i tried to uncheck the publish settings - Ekran görüntüsü 2024-02-07 211611.pngEkran görüntüsü 2024-02-08 150515.pngexport files as texture but it didnt work. What am i doing wrong?

Views

346

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

Community Beginner , Oct 16, 2024 Oct 16, 2024

Fixed the issue.
The issue was because an audio file has german character "ö" in it.
Renaming the audio file to plain english charater fixed the issue.

Thank you all for the support and quick replies.

Votes

Translate

Translate
Community Expert ,
Feb 08, 2024 Feb 08, 2024

Copy link to clipboard

Copied

in Adsiz-4: change that dash to an underscore and retest.

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 ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

i did that i think but it doesn't change anything.yükle.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 ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

create a desktop folder named abc. save your fla to the abc folder. retest.

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 Beginner ,
Oct 11, 2024 Oct 11, 2024

Copy link to clipboard

Copied

Hello,
i have same issue, did you found solution for this issue?
I also tried the steps suggested by @kglad , still the issue is not resolved.

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 11, 2024 Oct 11, 2024

Copy link to clipboard

Copied

does the problem occur with all audio files?

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 Beginner ,
Oct 13, 2024 Oct 13, 2024

Copy link to clipboard

Copied

@kglad 
1- I was using mp3 audio files first, but not able to import them to HTML5 Canvas document. So convert them to WAV format.
2- The Wave format audio files are working fine inside animate app.
3- Tried all 3 audio files in a single layer, it is fine inside animate app. but getting javascript error when exporting.
4- added all 3 audio files in their own seperate layer it is fine inside animate app. but getting javascript error when exporting.
5- Removed all Code in the action panel, still same error.
6- When all audio files are deleted from the project, then the project is exporting without any issue.
7- In the 'Sound Properties' options, tried default as well as mp3 compression, still same issue.

Please let me know if wav format is fine.

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 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

what's the error?  (or is it the user interaction is needed warning?)

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 Beginner ,
Oct 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

The error simply says 'A JavaScript error occurred'.
There is no other explainiation.

2024-10-15 11_05_27-Painting_AnimateCC.fla (Canvas).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 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

create a new fla and save with a new name.

copy the main timeline layers from the problematic fla to the new fla and save the new fla

test the new fla.

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 Beginner ,
Oct 16, 2024 Oct 16, 2024

Copy link to clipboard

Copied

Fixed the issue.
The issue was because an audio file has german character "ö" in it.
Renaming the audio file to plain english charater fixed the issue.

Thank you all for the support and quick replies.

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 16, 2024 Oct 16, 2024

Copy link to clipboard

Copied

LATEST

for others, always use a alphanumeric names with file-safe punctuation.

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