You can set the useHandCursor and onRelease properties in a mouse over handler, like so:
class myComponents.myButton extends mx.controls.Button { public function myButton(){ extraSpacing = 50; this.btnOffset = 1; label = "NO LABEL"; addEventListener("mouseOver", this); } function mouseOver(event: Object) : Void { event.target.useHandCursor = true; event.target.onRelease = null; } } --- In flexcoders@yahoogroups.com, "shemeshkale" <[EMAIL PROTECTED]> wrote: > > using flex1.5 i try to extend the Button. > > class myComponents.myButton extends mx.controls.Button { > public function myButton(){ > extraSpacing = 50; > this.btnOffset = 1; > label = "NO LABEL"; > useHandCursor = true; > } > } > > and: > <myComponents:myButton toolTip="btn tool tip" /> > > the problem is that everything works BUT the "useHandCursor" is not!! > the "extraSpacing", "btnOffset" and "label" do their work. > but i coudlnt find a way to make the "useHandCursor" work. > > how can i make it work? > -- 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/