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 - export files as texture but it didnt work. What am i doing wrong?
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.
Copy link to clipboard
Copied
in Adsiz-4: change that dash to an underscore and retest.
Copy link to clipboard
Copied
i did that i think but it doesn't change anything.
Copy link to clipboard
Copied
create a desktop folder named abc. save your fla to the abc folder. retest.
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.
Copy link to clipboard
Copied
does the problem occur with all audio files?
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.
Copy link to clipboard
Copied
what's the error? (or is it the user interaction is needed warning?)
Copy link to clipboard
Copied
The error simply says 'A JavaScript error occurred'.
There is no other explainiation.
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.
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.
Copy link to clipboard
Copied
for others, always use a alphanumeric names with file-safe punctuation.