Archive for as3
May 21, 2008 at 5:06 pm · Filed under as3, code example / ejemplos de codigo
This is a basic “humanoid” puppet using the IKMember from this post.
Even thou it works more or less for what i want, a lot of limitations are evident: setting different distances betweens different neighbor anchor points or making some of them static
source here : IKTestPuppet #1
May 20, 2008 at 2:05 pm · Filed under as3, code example / ejemplos de codigo
I’ve trying to create an animated puppet with a skeleton that i can “pose” in flash. After some research i found out that to accomplish my goal i had to use something called Inverse Kinematics.
I don’t really understand the math behind it that well, but i used this tutorial made for as2 to create my own IKMember class, pretty much just copying it but translated to as3. This is my first attempt at the simplest of skeleton puppets : a Snake
Here’s the source code (IKSnake.zip)
May 19, 2008 at 8:26 pm · Filed under as3, code example / ejemplos de codigo
I often use MovieClips as interface buttons. I’ve put together a class to save myself some time on this task.
The PWButton class takes a MovieClip and turns it into a fully functional button with some time-saving features:
- you can use the ‘data’ property to store and retrieve information, such as a parameter for later use on a function
- enable() and disable() methods, easily turn the PWButton on and off much like the SimpleButton.enabled property.
- you can set the roll over, down, and disabled states using frames within the target movieclip.
example swf:
PWButton.zip
« Previous entries ·
Next entries »