The Yourminis Toolkit is a collection of code (namely, classes) that consists of components and utilities which will help speed up your development time in Flash. Currently, there is only one component in the toolkit (a button class), but there is also the component foundation class (which all components in this toolkit extend), as well as a generic style class used to handle styles for all future components. All of the components are currently classes within .as files, so to use them you need only add the component set to your classpath. Note that this component set can be used independently of the Yourminis API, although future components may integrate with functions available in the API.
You can view a demo of the button class here. The top button is a normal button, the bottom button is a toggle button. If the bottom button is toggled, the top button outline will change in size. The buttons demonstrate the flexibility of the style class - virtually any property can be changed or tweened.
To get the files for the toolkit, sign in (or sign up, if need be) to our Google Groups page located here. Then navigate to the files section and download "components.zip". Extract this zip into the folder pointed to by your Flash Actionscript 3.0 classpath.
The button class has several advantages over the default button component provided in flash:
- It is much smaller (less than 5k!)
- It is easier to programatically customize and deploy
- If you are using multiple buttons, you can use a single set of Styles to manage all of them.
- The classes are extensible - all of the code is exposed to you for you to modify as you wish.
- When the button changes state, the visual styles are automatically tweened -- that means that they smoothly fade from one style to the next. Alternatively, you can set the defaultDelay property to "0" on any component to make the transition instant.
Here is a breakdown of the current classes:
- ymtoolkit.utils.Style (The style class which controls the visual styles of all components in the ym toolkit)
- ymtoolkit.components.YMComponent (The base component class)
- ymtoolkit.components.YMButton (A simple, styleable button class)
You will notice there are some empty folders in the toolkit - these are for future use.
The code is free for you to use in any project without any kind of licensing or fees - although it would make us happy if you built your project on our Yourminis Platform ! :)
All of the functions, variables, and classes are commented in the toolkit, but full documentation will be coming soon.
yourminis
Comments