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):
http://francois.schnell.free.fr/flex/draw/draw.html
Code in plain text:
http://docs.google.com/Doc?id=dgqhgsgm_153dc6cvzf7
4 commentaires:
muchas gracias!
hey, thanks for this!
You're welcome, I'm glad this is useful :)
Thanks bro.
Enregistrer un commentaire