An easy and quick to program multi-purpose button is very helpful especially when prototyping an application and time is of the essence. The Button and accompanying ButtonClickedEvent class are just the right solution here. These two classes can be programmed as standalone, toggle or menu functions with very little effort.
Entries Tagged as 'button'
Applying the TabbedButton and TabbedPage classes
December 21st, 2009 · 2 Comments · AS3 Custom Classes, Apps
The TabbedButton and the TabbedPage classes were designed to work together and share setup data common to both.
Adding the ButtonPressedEvent Class to the DTK_Button Class
December 7th, 2009 · No Comments · AS3 Custom Classes
In the last post, I introduced the DTK_Button class but left out a means for programmatically determining when the button is pressed. In this post, the ButtonPressedEvent class is used to determine when a button is clicked.
Configuring Buttons with Rollover: DTK_Button Class
December 3rd, 2009 · No Comments · AS3 Custom Classes
The DTK_Button Class is based on the graphics class drawRoundRect method. While developing this class, I discovered that by varying the dimensions and corner radius of the button four different visual configurations are obtained.
Adding a Background to the HTMLText Class: HTMLTextBG Class
November 20th, 2009 · No Comments · AS3 Custom Classes
The HTMLTextBG Class constructs a HTML formatted text field that is centered on a auto-sized colored background with an optional drop shadow. An optional parameter, url, may also be specified which makes the background mouse sensitive and, when clicked, will navigate to the specified url. This allows the class to be used as [...]
Tags:button·drop shadow·html·text
Improving the ImageRollover Class, Again: Tweening the Rollover
November 9th, 2009 · No Comments · AS3 Custom Classes
Last night I was reviewing the traffic reports for the site, when I noticed that a visitor had arrived at this site by searching for “flash caurina desaturate”. The phrase gave me the idea that I could improve the earlier ImageRollover class simply by substituting tweened rollovers in place of the abrupt transitions in [...]
Tags:button·colorfiltermatrix·desaturate·image·rollover·tween