| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Jun 2007
Posts: 5
|
I am trying to wrap my head around the use of design patterns. To do this I'm attempting to come up with the best structure of design patterns to create buttons which contain more functionality than the built in class SimpleButton.
For example, I want to create a structure for making buttons with animations between states (each of the states would be classes containing animations). Code:
var button:AnimButton = new AnimButton(); button.upState = new UpState( button ); button.overState = new OverState( button ); button.downState = new DownState( button ); addChild( button ); What design pattern's would you use to make a useful animating button structure? Has anyone developed their own button class (or any UI element) for easily implementing animations and additional behaviors? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flash Remoting with Perl | dopefries | Flash Remoting | 3 | 02-17-2007 02:42 PM |
| Help!How to make a design page for T-shirt design website | lanny | Other Flash General Questions | 14 | 03-26-2006 06:10 AM |
| Need help making this run faster | MAYAaddict | ActionScript 2.0 | 3 | 11-17-2005 11:09 PM |
| How would I design this? - reacting to button events | kracko | ActionScript 2.0 | 8 | 08-09-2005 03:51 AM |
| when button is clicked, make sure MC is at certain frame before playing next section | livingeachday | ActionScript 2.0 | 3 | 04-27-2004 10:39 AM |