About flex Sprite

Source: Internet
Author: User

The sprite class is a basic display list constructor. It is a display list node that Displays graphs and contains subitems.
A sprite object is similar to a video clip but has no timeline. Sprite is the base class of objects that do not require timeline. For example, Sprite is the logical base class of the user interface (UI) component that generally does not use the timeline.

Therefore, when we dynamically load components (such as simplebutton, textfield, and loader), we must first inherit the sprite class (public class simplebuttonexample extends sprite ). This. addchild (XXX) cannot be used during display, so Sprite is the base class of application. If this is the case, argumenterror: Error #2025: The displayobject provided must be a sub-level error of the caller. Instead, use this. Stage. addchild (XXXX ).

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.