oe-software-support
tama
—
2016-08-26T03:21:24Z —
#1
Hi, I've been trying to use the Image element (com.gestureworks.cml.elements.Image) to load image from a URL. Is there any way to create custom callback for LoaderEvent.Complete for the image loader inside the class? I've been looking into the source code and the comment specifically said not to override the method.
To clarify, what I want to do is load the image from a URL, and after the image completely loaded, do something with the image (animating, etc). Right now, the operation starts rightly after the image being fetched, so I think it needs to be inside the complete event callback.
Any help? Thanks!
shaunmarsh
—
2016-09-06T15:49:02Z —
#2
You should be listening for the StateEvent that is dispatched on load complete. See line 529 in the source file.
glass
—
2018-05-30T15:48:46Z —
#3
This topic is now closed. New replies are no longer allowed.
glass
—
2018-05-30T15:48:47Z —
#4
This topic is now archived. It is frozen and cannot be changed in any way.