1

我正在使用 EaselJs 库实现触摸动画。

当我从本地文件夹中读取图像时,所有鼠标事件都可以正常工作,例如:onPress。

但是当我从如下 URL 中选择图像源时:http: //www.visionale.net/wp-content/uploads/cool-accessories-car.jpg

鼠标事件,如 onPress,停止工作。

例如,尝试从库中拖动AndDrop 并将图像链接“img/x.jpg”更改为来自互联网的任何链接。

4

1 回答 1

1

That's the <canvas> crossdomain issue (security feature).

There is a workaround: you can use a simple 'proxy script' on your server. This one is pretty nice: http://benalman.com/projects/php-simple-proxy/

于 2012-05-10T11:33:10.483 回答