FlexShape

The FlexShape class is a very small class that extends the Flash Shape class and sets its name property to a unique identifier and overrides the toString() method to return a dot separated path to the Flash Stage.

The behavior is fully explained in the article on Intermediary Flex classes along with FlexSprite which has an identical implementation.

The FlexSprite class is a very small class that extends the Flash Sprite class and sets its name property to a unique identifier and overrides the toString() method to return a dot separated path to the Flash Stage.

The behavior is fully explained in the article on Intermediary Flex classes along with FlexShape which has an identical implementation.

These classes mediate between Flash and Flex and provide some minor translation of the functionality of Flash into the functionality expected by Flex. FlexSprite and FlexShape translate the name property and toString() method into the expected behavior in Flex.

Both classes have essentially the same functionality. In their constructor, they perform an assignment such as this (from FlexSprite):

  1.       name = NameUtil.createUniqueName(this);

Search Great Flex/Flash Sites