I have a canvas and i am adding display objects as its child in the form of a circle. Basically it is drawing circles on the canvas in the form of a hierarchal graph manner.
Now after adding all the child , i want to give a fuctionality to user to zoom in zoom out the present graph.
Is there any functionality of this kind in flex??
You can have a look on the graph at http://venr.com.sg/Nodes/linkchart.html
To get the graph enter no. 20184 in the 'Enter Node' textbox.
You can use a Zoom effect on your canvas or you can create a function that scales the canvas with the desired scaling factor.
The lines bellow doubles the size of the canvas.
canvas.scaleX = 2; canvas.scaleY = 2;