Kevin
Kevin

Reputation: 23634

Difference between UIComponent and Sprite in Flex

What is the difference between a UIComponent and a Sprite in Flex.

Upvotes: 2

Views: 1941

Answers (1)

Ladislav
Ladislav

Reputation: 7283

UIComponent is a base class for all other visal components in Flex and it is a part of Flex framework. (Package mx.core)

Sprite class is a basic display list building block and is part of Flash (Package flash.display)\

UIComponent is extends Sprite...

Check also:

UIComponent (check Inheritance UIComponent -> FLex Sprite -> Sprite -> ...)

Sprite

HBox (you can see that this visual component has UIComponent as it's base class Inheritance Box -> Container -> UIComponent -> ...)

Upvotes: 3

Related Questions