[flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-18 Thread shemeshkale
MANY great tnx! it works! this is my final code: the onRelease = null is not necessary kuz a Button component allready transmit it. and the keyDown function fires a click event on ENTER key press. any comments? class myComponents.myButton extends mx.controls.Button { public function

[flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-17 Thread Doug Lowder
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,

[flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-16 Thread shemeshkale
still not working, just to remind u - i m trying to use the useHandCurosr if i write it directly in the mxml tag (useHandCursor=true) it works great!! but when trying to do this from AS its not working. my guess it is something to do with the scope.. but what is the solution? Add:

Re: [flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-16 Thread JesterXL
Er, wait a minute, what the heck is this? myComponents.myButton Why not: class MyComponent? What is the . for? - Original Message - From: shemeshkale [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 16, 2006 3:18 PM Subject: [flexcoders] Re: tryin to extend

[flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-16 Thread shemeshkale
this is the way it is structured in my site. the AS file name is myButton.as and it is inside myComponents folder. Er, wait a minute, what the heck is this? myComponents.myButton Why not: class MyComponent? What is the . for? Yahoo! Groups Sponsor

Re: [flexcoders] Re: tryin to extend the Button (flex1.5)

2006-07-16 Thread JesterXL
5:38 PM Subject: [flexcoders] Re: tryin to extend the Button (flex1.5) this is the way it is structured in my site. the AS file name is myButton.as and it is inside myComponents folder. Er, wait a minute, what the heck is this? myComponents.myButton Why not: class MyComponent? What