Hi Stacy, >From what I can gather, It has to do with the icon (ie iconName) not having an enabled setting on the PNG itself ie:
function refresh():Void { var offset:Boolean = getState(); if (enabled == false ) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } layoutContents(phase == "down"); if (iconName != undefined) { iconName.enabled = enabled; } } Which in a nutshell, will inform the "custom" skin of the proposed disabled state, while at the same time will set the icon itself's enabled state to false. It being a _resource PNG, will simply look at the caller with a dumbfounded expression of "well..yeah..but what do you want me to do about it?" heh. So yeah, that's "why" from what i can gather. You can always extend your Button class and put your own: eg: <mb:Button label="Test1" id="tmp" icon="@Embed('testIcon.png')" enabled="false" /> -- com.mossyblog.controls.Button -- class com.mossyblog.controls.Button extends mx.controls.Button { function viewIcon(varName:String):Void { super.viewIcon(varName); if(varName == "disabled") { this.iconName._alpha = 20; // give it a "disabled state here" } } } On 7/5/05, leontanner2000 <[EMAIL PROTECTED]> wrote: > Hi Stacy, > Not sure about buttons off hand but we use swfs for Links in place of > pngs etc. > HTHs > Leon > > > > --- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> > wrote: > > When embedding icons on buttons...the icons don't fade when the button > > is disabled...I'm currently embedding png's...does it need to be swf? > > *starts digging for flash IDE CD-ROM* > > > > > > > > Thanks! > > > > Stace > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/