there’s a large ammount of display objects in flash.display package. It’s not clear for me in what situation I should use Shape, Sprite or MovieClip. What is the pro and contras in using each of them?
Thank you in advance!!
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.
the most limited one: you can’t add childen to it (does not extend DisplayObjectContainer), does not have interactivity (does not extend InteractiveObject), does not have a timeline
In short, stick to Sprite in most cases, unless you need to integrate with MovieClips from Flash Authoring. Shape is handy to quickly draw into and it’s ‘lighter’ than Sprite, but not very flexible since you can’t nest other elements to it.