I was surprised by the lack of documentation( and working example) for this simple task.
Here's what I've got so far:
- Flex doesn't like "Shape" objects? replace them with "UIcomponent"
- a "UI component" must be attached to a container (like a canvas, a panel,...)
- the shape will be visible when it is added has a child of the container: myCanvas.addChild(myCircle)
Run (right click at runtime then "view source" to see the code):
Code in plain text: