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.
Did Animate try to warn you about this possibilty when you published the project? In the Output window?
- 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.
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.
What if I want images in my button?
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.
Thank you so much!
You can also try explicitly defining the hit frame with a shape and a solid color.