Copy link to clipboard
Copied
When I publish my project I get this error when I open the HTML file.
Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
Copy link to clipboard
Copied
Did Animate try to warn you about this possibilty when you published the project? In the Output window?
Copy link to clipboard
Copied
- Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
Bitmaps should change with button responses.
Copy link to clipboard
Copied
Well there you go. You have bitmaps in your buttons and they are in fact generating local security errors in your browser when run from the local file system.
Copy link to clipboard
Copied
ok
Copy link to clipboard
Copied
What if I want images in my button?
Thank you.
Copy link to clipboard
Copied
If the image doesn't change, then just put an image behind a transparent button.
If you must have the images inside the buttons, then accept that it will only work when your project is loaded from a web server.
Copy link to clipboard
Copied
Thank you so much!
Copy link to clipboard
Copied
You can also try explicitly defining the hit frame with a shape and a solid color.