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

Animate Adding audio file creates javascript error on publishing HTML5 canvas

New Here ,
Feb 08, 2024 Feb 08, 2024

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.pngexpand imageEkran görüntüsü 2024-02-08 150515.pngexpand imageexport files as texture but it didnt work. What am i doing wrong?

507
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 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.

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

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

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

i did that i think but it doesn't change anything.yükle.pngexpand image

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

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

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

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.

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

does the problem occur with all audio files?

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

@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.

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

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

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

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

2024-10-15 11_05_27-Painting_AnimateCC.fla (Canvas).pngexpand image

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

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.

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 ,
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.

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

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

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