I have a simple Image component,
I change its source dynamically on creation.
myimg.source = "http://foo/bar.jpg"
How can I know when the image is loaded and received so that I can check its width ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
in case you are working with flex:
Set a render event on your image component:
In the script field:
The render event is called when any displayobject is dispatched when the display list is about to be updated and rendered.
Flash (AS3.0):
(only tested in flex)