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!
You should be listening for the StateEvent that is dispatched on load complete. See line 529 in the source file.
This topic is now closed. New replies are no longer allowed.
This topic is now archived. It is frozen and cannot be changed in any way.