下面是我的代码,可以直接粘贴到Framer Studio中:
layerA = new Layer()
# Listen to the loading event
layerA.on Events.ImageLoaded, ->
print "the image is loaded"
layerA.on Events.ImageLoadError,
-> print "the image could not be loaded"
layerA.image = "http://framerjs.com/static/images/home/app-icon.png"但是,我发现the image is loaded字符串从未打印过。是由缓存引起的吗?有没有人有办法解决这个问题?
发布于 2015-09-01 23:47:10
有与ImageLoaded事件相关的an issue。这个问题应该可以在当前版本的Framer中解决。
https://stackoverflow.com/questions/31780643
复制相似问题