Forums
This topic is locked
Customized Toggle Button (Flash MX 2004)
Posted 11 Feb 2006 20:35:57
1
has voted
11 Feb 2006 20:35:57 Ezra Goodnoe posted:
After much painful and exasperating effort to skin the button component in MX 2004 (should it really be this convoluted to do something so simple and common?) I have finally succeeded in skinning the button component with my own images but now the button won't stay in the toggled state. Here is the code I have in an "actions" layer:mx.controls.Button.prototype.falseUpSkin = 'falseUpSkin';
mx.controls.Button.prototype.falseDownSkin = 'falseDownSkin';
mx.controls.Button.prototype.falseOverSkin = 'falseOverSkin';
//mx.controls.Button.prototype.falseDisabledSkin = 'falseDisabledSkin';
mx.controls.Button.prototype.trueUpSkin = 'trueUpSkin';
mx.controls.Button.prototype.trueDownSkin = 'trueDownSkin';
mx.controls.Button.prototype.trueOverSkin = 'trueOverSkin';
//mx.controls.Button.prototype.trueDisabledSkin = 'trueDisabledSkin';
What am I missing? The buttons worked fine in terms of staying highlighted when I toggled them prior to changing the skins.<font face='Arial'></font id='Arial'>