Skip to main content
christophem71423201
Known Participant
October 23, 2018
Answered

Impossible to make those button to work (blocked by IE/C..)

  • October 23, 2018
  • 1 reply
  • 351 views

Hello,

I make very simple buttons on a new .fla...

var _this = this;

_this.korgl1.on('click', function(){

window.open('http://www.x.fr/0.html', '_parent');

});

_this.korgl2.on('click', function(){

window.open('http://www.x.fr/1.html', '_parent');

});

If I try (ctrl+enter) all is working, and if I publish it, run the html, the buttons are blocked, the rollover don't work, nor the hyperlink... If I run it with IE, it say the content is blocked, so I allow it and it work. W** is this ?!

Message was edited by: João César de Lima

    This topic has been closed for replies.
    Correct answer JoãoCésar17023019

    Hi.

    Are you using the 2019 version of Animate CC? If so, by default it exports shapes as bitmaps which can cause the issue.

    Uncaught An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.

    To avoid this, uncheck Export document as texture in Publish Settings > Image Settings or just run your page from a server. When you use Ctrl/Cmd + Enter, Animate automatically setups a server for you and that's the reason you don't get the error.

    Regards,

    JC

    1 reply

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    October 23, 2018

    Hi.

    Are you using the 2019 version of Animate CC? If so, by default it exports shapes as bitmaps which can cause the issue.

    Uncaught An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.

    To avoid this, uncheck Export document as texture in Publish Settings > Image Settings or just run your page from a server. When you use Ctrl/Cmd + Enter, Animate automatically setups a server for you and that's the reason you don't get the error.

    Regards,

    JC

    christophem71423201
    Known Participant
    October 23, 2018

    Thank yohu man !

    JoãoCésar17023019
    Community Expert
    Community Expert
    October 23, 2018

    You're welcome!