Hi,

 

I try to manipulate the Icon of a subclass of a Linkbutton to generate a disabledIcon. Could anyone help me, to convert an Image to a Class to set as a disabled Image?

 

Harry

 

      public class LinkButtonEx extends LinkButton {

            private var _DisabledImage:Image;

           

            public override function setStyle(styleProp:String, newValue:*):void {

                  super.setStyle(styleProp, newValue);

                  if ( styleProp == "icon" ) {

                        if( _DisabledImage == null ) {

                             _DisabledImage = new Image();

                             this.addChild(_DisabledImage);

                        }

                        _DisabledImage.source = newValue;

                        this.callLater(_DisabledIconLoaded);

                  }

            }

           

            private function _DisabledIconLoaded():void {

                  _DisabledImage.content.blendMode = BlendMode.ERASE;

                  // doing some Bit

                  super.setStyle("disabledIcon", _DisabledImage);  // I get an error here

            }

     

            public function LinkButtonEx() {

                  super();

            }

      }          

 

Harald Dehn

 

Gutzkowstraße 27

60594 Frankfurt

 

Tel   +49 (69) 61002712

Fax   +49 (69) 15049656

Mobil +69 (151) 17887510

 



--
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




BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD

Reply via email to