RE: [flexcoders] Re: How to show the Hand Cursor on the Close Button?
Use This, btn.mouseChildren = false; btn.useHandCursor= true; btn.buttonMode = true; Regards, Nirav Gosalia From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudiu Ursica Sent: Tuesday, August 05, 2008 5:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to show the Hand Cursor on the Close Button? var btn:Button = this.mx_internal::closeButton; btn.useHandCursor = true; However the mx:internal might change in the future so this is not bullet proof. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , flexawesome [EMAIL PROTECTED] wrote: Hey there, In the titlewindow component, I set showCloseButton = true; Do you know how can I show the Hand Cursor on the Close button? Thanks - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
Re: [flexcoders] Re: How to show the Hand Cursor on the Close Button?
Add the mx_internal declarations at the top of your class: import mx.core.mx_internal; use namespace mx_internal; -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: flexawesome [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 5, 2008 3:33:56 PM Subject: [flexcoders] Re: How to show the Hand Cursor on the Close Button? The button is at the TOP/LEFT corner in the TitleWindow. it shows the error msg below... any suggestions? 1120: Access of undefined property mx_internal. --- In [EMAIL PROTECTED] ups.com, Claudiu Ursica the_braniak@ ... wrote: var btn:Button = this.mx_internal: :closeButton; btn.useHandCursor = true; However the mx:internal might change in the future so this is not bullet proof. --- In [EMAIL PROTECTED] ups.com, flexawesome flexawesome@ wrote: Hey there, In the titlewindow component, I set showCloseButton = true; Do you know how can I show the Hand Cursor on the Close button? Thanks
RE: [flexcoders] Re: How to show the Hand Cursor on the Close Button?
See if btn is null. Find a different place to run your code if it is. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Tuesday, August 05, 2008 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to show the Hand Cursor on the Close Button? anyone? :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , flexawesome [EMAIL PROTECTED] wrote: It shows btn.buttonMode = true has an error = TypeError: Error #1009: Cannot access a property or method of a null object reference. here is the code, please click the link below.. http://www.privatepaste.com/0d0GdjsUId http://www.privatepaste.com/0d0GdjsUId Thank you --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Laurent Cozic pogopixels@ wrote: Add the mx_internal declarations at the top of your class: import mx.core.mx_internal; use namespace mx_internal; -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com http://pogopixels.com - Original Message From: flexawesome flexawesome@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, August 5, 2008 3:33:56 PM Subject: [flexcoders] Re: How to show the Hand Cursor on the Close Button? The button is at the TOP/LEFT corner in the TitleWindow. it shows the error msg below... any suggestions? 1120: Access of undefined property mx_internal. --- In [EMAIL PROTECTED] ups.com, Claudiu Ursica the_braniak@ ... wrote: var btn:Button = this.mx_internal: :closeButton; btn.useHandCursor = true; However the mx:internal might change in the future so this is not bullet proof. --- In [EMAIL PROTECTED] ups.com, flexawesome flexawesome@ wrote: Hey there, In the titlewindow component, I set showCloseButton = true; Do you know how can I show the Hand Cursor on the Close button? Thanks