Rectangle « Graphics « Flash / Flex / ActionScript






1.Draw a rectangle
2.Draw Colored Rectangle
3.Fill a rectangle
4.Rotating Rectangles
5.rotateChildren( ), applies the generalized code from Example 20-4. It randomly rotates all the descendants of a specified container (not just the children).
6.A rectangle in a Sprite is nested within another Sprite. Both Sprite instances are rotated 45 degrees.
7.Square