html5 canvas turns blank
Copy link to clipboard
Copied
hello, i am absolutely new to coding in actionscript and i've made something.
when i export it from the adobe animate, it runs perfectly fine, but when i open it from my computer folder, everything is just blank. what do i do?? please tell me if i need to be more specific.
Copy link to clipboard
Copied
your local browser is probably complaining about a security violation. (open your developer console* to confirm.)
you should be able to upload to a file server and test that.
*
Lesson 1: https://youtu.be/bG05_am-fQI
Lesson 2: https://youtu.be/H9e9toftvdM
Copy link to clipboard
Copied
i dont think any of these are the problems. when i checked on the images folder, only 4-6 out of the many i made was in there, would you like to check out the problem and help ? D:
Copy link to clipboard
Copied
copy and paste here the contents of your developer console
Copy link to clipboard
Copied
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: <URL>
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:13 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._testHit @ createjs.min.js:13
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
createjs.min.js:15 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
b._applyFilters @ createjs.min.js:15
Copy link to clipboard
Copied
that's the security issue already mentioned in my first post.
Copy link to clipboard
Copied
still not working . do you want the fla file?
Copy link to clipboard
Copied
did you upload to a server to test?
Copy link to clipboard
Copied
just got it working right now....??? all i had to do was delete the preloader for some reason, thanks for taking your time though 😄
Copy link to clipboard
Copied
you're welcome.
for others, the only thing causing the op's cross-domain security issue was the preloader
Copy link to clipboard
Copied
also, the only thing thats showing up is the preloader .

