Copy link to clipboard
Copied
I just followed @Nick Gioia tutorial for making a simple JS game for HTML5 in AN. The problem is that while it works fine in AN, when I publish to HTML5, there are errors that's getting in the way of interactivity. Specifically, the objects that have addEventListener on them do not respond to user input. The errors that I'm getting point to the code that AN has added to make it palatable to HTML5. Anyone have experience with publishing AN to HTML5 that can point me to a useful tutorial?
1 Correct answer
i'm sorry, i misread your message about opening locally. yes, that IS the problem and that's why you're seeing a cross-domain security error.
ie, there's no problem in your files. the problem is the way you're testing.
Copy link to clipboard
Copied
are you testing from within animate (control>test movie>in browser) or have you uploaded your files to a server. (ie, you're NOT opening the html on your local file system)?
if so, embed a screenshot of the admin console error message.
Copy link to clipboard
Copied
When I test in Animate with ctrl+enter, everything works fine. I haven't tried it on a server, just opening it locally. Is that the problem?
Copy link to clipboard
Copied
again, embed a screenshot of the admin console error message
Copy link to clipboard
Copied
This is what I'm seeing.
Copy link to clipboard
Copied
i'm sorry, i misread your message about opening locally. yes, that IS the problem and that's why you're seeing a cross-domain security error.
ie, there's no problem in your files. the problem is the way you're testing.
Copy link to clipboard
Copied
Roger that.
Copy link to clipboard
Copied
it's a browser security issue that (imo) shouldn't occur when testing locally. (and again, sorry about that misread on my part.)

