EaselJs errors in chrome
-
13-06-2021 - |
Question
Am using Easeljs library. Everthing works fine in firefox and ie9 except in google chrome mouse events wont work and I got this error "Uncaught An error has occured. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."
Solution
Serve your page from a web server. Do not open the file from disk in chrome.
OTHER TIPS
Another possibly working answer is:
var queue = new createjs.LoadQueue(true, null, true);
Since v.0.4.1, here's what they say:
The crossOrigin flag is already included in the LoadQueue() constructor of v.0.4.1.
Just run you Chrome with --reduce-security-for-testing command-line argument. So you can develop your project locally without using web server.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow