This plugin contains a set of buttons for Silex. Those buttons cover most classic button uses and improve on the buttons packaged with Silex (like the dreaded labelButton). There are currently 3 different buttons packaged with this plugin. They all share common properties and each have specific properties.
- 8 states for each button
- Selected Up
- Selected Down
- Selected Over
- Disabled Up
- Disabled Selected
- Toggle / non-toggle buttons
- Disabled / enabled button
- Button bar
A button skinned in Flash. The Fla contains a key frame for each of the state of the button. You can change it’s skins and it’s label display in Flash.
Displays a different HTML label for each of the button states with embedded or non-embedded text.
Acts like a BestLabelButton and add the possibility to define a background for each of the state that must be a component on the scene, like a Geometry component.
A best button can have 8 different states triggered by user interaction. For instance when the user doesn’t interact with the button, the current state is Up or SelectedUp if the button is a selected toggle button. If the user rolls over a button the current state becomes Over or Selected Over if the button is a selected toggle button. For each state, you can defines the display of the background and/or the label of the button. For instance, for a BestButton, you define the display of the button in Flash, for each state you can change the movieClip of the background and the TextField display. With a BestLabelButton, you set the display of the label in Silex, with an HTML text.
Toggle / non-toggle buttons
A toggle button is a button that can be selected, most of them appears to be “pushed” when they are selected. For each button, you can chose if the button is toggle or not. If it is the button can trigger all of the state, if it isn’t, he can’t trigger the Selected states.
Disabled / enabled button
Each button can be disabled, in which case it doesn’t respond to clicks anymore. The disabled/enabled state can be changed with the wysiwyg or via actions, which can come in handy in form creation when some form items must be disabled until others are filled.
Each button can belong to a button bar. If a button belongs to a button bar, when the button is selected, all of the other button in the button bar are disabled. It can be useful to create navigation type menu where you can only be at one page at a time. It can only work with toggle buttons. To belong to a button bar, you must the fill the “button group ID” property with the name of the button bar that you chose. When multiple buttons share the same button bar name, they belong to the same button bar.
The BestSkinnableButton only as one label property that will be used for each state. This button is oriented toward Flash designer, the button skin can be changed with the BestSkinnableButton FLA, downloadable from this post. In it, each of the button state are on a separate frame, like a Flash button. For each state you can change the background by modifing the background MovieClip in the library, and change the label display by changing the text layout of the state label’s text field.
This button can be used when you want to create a button with only a label, no background. For each of the state, you can fill the label in the Wysiwyg with the corresponding property. The label can be in HTML to add style to text. You can use embedded font if you select the embed fonts check box. When embed fonts is activated, all the HTML labels using fonts that you embedded in the manager will be displayed. The label won’t appear if the font is not embedded.
This button has the same properties than the BestLabelButton and add some. For each state, you can specify a background. The background must another component on the scene. For instance you can use a Geometry component filled with a gradient and with rounded corner as the background of your Up state, you just have to enter the name of the Geometry component in the Background Up comboBox, the Geometry component will move at the right place and take the same size as the button.