The doc shows how to do all of this. It should be something like:
ShowHandButton.as: public class ShowHandButton extends Button { public function ShowHandButton() { useHandCursor = true; buttonMode = true; } } TestApp.mxml <mx:Application xmlns:mx="http:....." xmlns:local="*" > <local:ShowHandButton /> ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Monday, October 01, 2007 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Changing Mouse Cursor in application hey Alex, If i creates a subclassing, shall I change all tag of <mx:Button> to something like <mx:ShowHandButton> in my main application (mxml file)? also, is there any sample code I can take a look as I am just starting the Flex :) Cheers --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > You could detect if it is a button, but you're better off subclassing > the buttons and turning on buttonMode and useHandCursor there. > > > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of flexawesome > Sent: Monday, October 01, 2007 10:28 AM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Changing Mouse Cursor in application > > > > Alex, thanks for the reply. > > The only problem is I don't want to change the mouse cursor to hand > completely in my application. I only want to change the mouse cursor > to hand once user rollOver to links such as buttons or link buttons. > > Huummm... Is there a way to detect the object is a button? if it is, > then change the mouse cursor? is that possible? > > Cheers > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > Make a copy of the hand and use cursor manager? > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of flexawesome > > Sent: Monday, October 01, 2007 9:28 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Re: Changing Mouse Cursor in application > > > > > > > > guys, any suggestions? :) > > > > Thanks > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > , "flexawesome" <flexawesome@> wrote: > > > > > > Hi there, > > > > > > I build a application and would like to change the default mouse > > cursor > > > from the arrow cursor to a hand? I can reset buttonMode=true for all > > > components one by one. However, there is too much stuffs and > > > "impossible" manually do that. > > > > > > Is there a way to apply this for all components(like > > > pic,button,link...etc) once user rollOver mouse to the target? Any > > > suggestion? > > > > > > Thanks > > > > > >