Posts tagged as:

Button

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 [...]

{ 0 comments }

When building applications or games in Flash, often you might want a button to continually dispatch an event for as long as a user has the Button instance pressed. For example, if you were building a custom numeric stepper you would want the numbers to increase or decrease for as long as the user pressed [...]

{ 7 comments }

The following example demonstrates how to load a remote image for a button icon using both a Loader instance and a UILoader component instance.
Full code after the jump.

{ 0 comments }

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.

{ 0 comments }

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 [...]

{ 0 comments }

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 [...]

{ 0 comments }

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 [...]

{ 0 comments }

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.

{ 1 comment }