PWButton as3 class
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:
