AWESOME!

It couldn't be placed in the constructor... thanks Alex

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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" <flexawesome@> 
> 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
> > > > >
> > > >
> > >
> >
>


Reply via email to