Animated Button with AS3
I have two problems that i would like to resolve and maybe some of you could give me some hints and point into the right direction.
I have created a class which makes a rectangular object which will function as a button. How can I add an animation to this button once it is created from the main class?
I want a circle to tween in from left on MouseOver and tween out on MouseOut within that rectangle. The question is, where do I put this circle? Do i created it as a seperate instance and then add to the rectangle or created it within the rectangle and then hide it or use masks.
The second question is, once the animation has been resolved, where should i put the text field, as a seperate instance on top of the rectangle or within it.
I am just confused since this is my first attempt at OOP and AS3.
Help would be appreciated.
Thank you,
Yanis
|