_rr.setAttribute("backgroundStartColor", this.overStartColor); _rr.setAttribute("backgroundStopColor", this.overStopColor); _rr.drawStructure(); // Change the color for the up, down, over states this.setAttribute("downStartColor", s.basecolor) this.setAttribute("downStopColor", s.bgcolor) this.setAttribute("overStartColor", 0xFFFFFF) this.setAttribute("overStopColor", s.basecolor) this.setAttribute("upStartColor", s.hilitecolor) this.setAttribute("upStopColor", s.basecolor) // Change the color attributes on the inner roundrect this._rr.setAttribute("backgroundStartColor", this.upStartColor); this._rr.setAttribute("backgroundStopColor", this.upStopColor); this._rr.setAttribute("bordercolor", s.bordercolor) this._rr.setAttribute("borderwidth", s.bordersize) // Redraw the inner roundrect _rr.drawStructure(); _rr.setAttribute("backgroundStartColor", this.overStartColor); _rr.setAttribute("backgroundStopColor", this.overStopColor); _rr.drawStructure(); _rr.setAttribute("backgroundStartColor", this.upStartColor); _rr.setAttribute("backgroundStopColor", this.upStopColor); _rr.drawStructure(); _rr.setAttribute("backgroundStartColor", this.downStartColor); _rr.setAttribute("backgroundStopColor", this.downStopColor); _rr.drawStructure(); if (!this['_rr']) return; // ignore these events if the roundrect // itself hasn't been built yet _rr.setAttribute('width', this.width); _rr.drawStructure(); if (!this['_rr']) return; // ignore these events if the roundrect // itself hasn't been built yet _rr.setAttribute('height', this.height); _rr.drawStructure();