Pie Chart example in AS3
A sample class to make a dynamic pie chart in Actionscript 3, it includes a sample Tooltip class.
A sample class to make a dynamic pie chart in Actionscript 3, it includes a sample Tooltip class.
(This is a follow up on a previous Pivot rotation post i had)
Making an object’s rotation follow the mouse is easy enough, but it got a bit tricky when i wanted this rotation to be set only when i actually dragged the mouse around and not inmediatly on the mouse press. It would have saved me some time to have had this example online and i hope it does that for some people.
This class does that when given a MovieClip as a parameter. It broadcasts a couple of nice events to let you know when the rotation starts and ends. See the source file for an example.
Updated this excellent example of how to draw a star to AS3 (original was 6 years old!)