inicio
home / inicio

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

Officially a (foreign) citizen

We Colombians are very un-welcomed inmigrants (or even just visiting tourists) all over the world. Fortunetely Argentina is (still) an exception to this rule and today i got my Argentina (foreigner) identity card.

Los Colombianos no somos bienvenidos como inmigrantes (o siquiera turistas) por todo el mundo. Afortunadamente Argentina es (todavia) la excepción a la regla y hoy recibi mi DNI (de extranjero).

Next entries »