0

这是我的代码,可以直接粘贴到 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字符串从未打印出来。是缓存引起的吗?有没有人知道如何解决这个问题?

4

1 回答 1

1

存在与 ImageLoaded 事件相关的问题。应该在当前版本的 Framer 中解决。

于 2015-09-01T15:47:10.183 回答