View comments | RSS feed

Class hierarchy for visual components

Flex visual components are implemented as a class hierarchy in ActionScript. Therefore, each visual component in your application is an instance of an ActionScript class. The following image shows this hierarchy in detail up to the Flash Sprite component level:


Component class hierarchy

All visual components are derived from the UIComponent class and its superclasses, the Flash Sprite through Object classes, and inherit the properties and methods of their superclasses. In addition, visual components inherit other characteristics of the superclasses, including event, style, and behavior definitions.


Flex 2.01

Take a survey


Comments


sparky1962 said on Feb 28, 2007 at 11:19 AM :
Doesn't UIComponent derive from FlexSprite (and not from Sprite)?
NetworkerDeluxe said on Apr 18, 2007 at 12:55 AM :
Yes, it derives from FlexSprite and not from Sprite.
NetworkerDeluxe said on Apr 18, 2007 at 7:45 AM :
But FlexSprite drives from Sprite. FlexSprite is only for graphical Design. So it will create for each UIComponent on the Stage an unique name, such as "Button17" (from the source code)

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/201/html/components_056_03.html