by Peter deHaan on December 19, 2008
in UILoader
The following example shows how you can control whether content is auto-loaded in a Flash ActionScript 3.0 UILoader container by setting the Boolean autoLoad property. If the autoLoad property is set to true, the content is automatically loaded whenever the source property is set or the load() method is called. If the autoLoad property is [...]
Tagged as:
autoLoad,
Button,
load(),
source,
UILoader
by Peter deHaan on November 26, 2008
in Button
by Peter deHaan on November 26, 2008
in Button
by Peter deHaan on November 26, 2008
in Button
The following example shows how you can control the amount of padding between the Button instance’s icon and label by setting the textPadding style.
Full code after the jump.
Tagged as:
Button,
icon,
textPadding
by Peter deHaan on November 26, 2008
in Button
In a previous entry, “Setting icons on the Button component with Flash and ActionScript 3.0″, we saw how to add an icon to a Button component instance by setting the icon style. You can use the labelPosition property to position the button’s label relative to the icon.
The following example demonstrates the four possible values for [...]
Tagged as:
Button,
ButtonLabelPlacement,
icon,
labelPlacement
by Peter deHaan on November 26, 2008
in Button
When using a Button component, you optionally can specify an icon that appears next to the button’s label. This allows you to easily add a check mark icon for a Submit button and a red X for a Cancel button, or you could put a product’s logo next to its name.
When working with icons, you’ll [...]
Tagged as:
Button,
icon
by Peter deHaan on November 25, 2008
in Button
When building applications, often you might want to add emphasis to a certain button. For example, if you had a simple feedback form with both a Submit and a Cancel button, you may want to add a border around the Submit button to make it a bit more visible to the user. Adding emphasis around [...]
Tagged as:
Button,
emphasized,
emphasizedPadding
by Peter deHaan on March 11, 2008
in Button
The following example shows how you can use embedded fonts (normal weight and bold weight) with a Flash CS3 Button control in ActionScript 3.0.
Full code after the jump.
Tagged as:
Button,
embedFonts,
Font,
setStyle(),
textFormat