Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Button icon issues

Button icon issues

2004-02-11       - By Aral Balkan

 Back
Reply:     1     2     3     4     5  

Am I missing something or is it exceedingly yucky and difficult to have a
button component with an icon that responds to changes in the button 's state
(up, down, over, disabled, etc.)

// works perfectly but the icons should
// *not* be part of the skin (they should be
// instance properties) or, even better, the
// button should call handlers on a single icon object
// for the up, down, over, disabled, etc. states
var initObject = new Object();
initObject.falseUpIcon = "up ";
initObject.falseDownIcon = "down ";
initObject.falseOverIcon = "over ";
initObject.label = "blah blah ";
createClassObject(mx.controls.Button, "ButtonInstance ", 0, initObject);

// a is a button that already exists on stage
a.falseOverIcon = "over "; // doesn 't work
a.falseUpIcon = "up "; // works
a.falseDownIcon = "down "; // works

Thoughts?

Aral


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:103771
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)