Skip to main content
Participant
Feb 8, 2024 12:12 PM UTC
Answered

Animate Adding audio file creates javascript error on publishing HTML5 canvas

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 - export files as texture but it didnt work. What am i doing wrong?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Arcadix GmbHCorrect answer
    Inspiring
    Oct 16, 2024 7:08 AM UTC

    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.


    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.

    11 replies

    Inspiring
    Oct 11, 2024 1:08 PM UTC

    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
    kglad
    Community Expert
    Community Expert
    Oct 11, 2024 2:14 PM UTC

    does the problem occur with all audio files?

    Translate
    Inspiring
    Oct 14, 2024 5:49 AM UTC

    @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
    kglad
    Community Expert
    Community Expert
    Feb 8, 2024 2:43 PM UTC

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

    Translate
    Participant
    Feb 19, 2024 8:19 AM UTC

    i did that i think but it doesn't change anything.

    Translate
    kglad
    Community Expert
    Community Expert
    Feb 19, 2024 10:23 AM UTC

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

    Translate