How to get width and height object in library in Actionscript 3?
Share
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.
To get width and height of a library asset during runtime, you need to create an instance of it, add it to stage, and then query
getRect()orgetBounds()of the created instance. If you don’t need that instance right now, just remove it from stage.This does not work if the current class does not have an access to stage.