inicio
home / inicio

Pie Chart example in AS3

Download source

A sample class to make a dynamic pie chart in Actionscript 3, it includes a sample Tooltip class.

Spinning a disk, detecting mouse angle in AS3

(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.

Download the Spin disk example (.zip 660kb)

Reach for the stars!

Updated this excellent example of how to draw a star to AS3 (original was 6 years old!)

Download source and example

Next entries »