Can I get the height of an image from its URL information in ActionScript 3?
I have the image URL. I want to draw the image in my UI and I want to set the height of the drawing area dynamically upon getting the image.
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.
You can read the height/width of an image only after loading it to your SWF. Load the image using a
Loaderinstance, cast theloader.contenttoImage, read the height and width of itsbitmapData.