The thumbCount must already have the final keyword, as I can't
overload it. I get the "Overriding function that is not marked for
override" error, and it won't compile.
...but at least I understand why now! :-)


--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> wrote:
>

> Correct.
>
> public final function set thumbCount(number:Number):void
> {
>     super.thumbCount = number;     
> }
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of nz_mehere
> Sent: Wednesday, May 03, 2006 4:12 PM
> To: [email protected]
> Subject: [flexcoders] Re: how do I prevent users from accessing my super
> extened class?
>
> Hi Peter,
>
> If I understand what you are saying, the Final keyword will be on the
> "thumbCount" property, so preventing anyone from over loading it as I am
> trying to do?
>
> That makes sense...
>
> Thanks for the help
>
> --- In [email protected], "Peter Farland" <pfarland@> wrote:
> >
> > In Flex 2 / Flash Player 9 you'll use ActionScript 3, which has the
> > final keyword which can be applied at the class or method levels to
> > stop subclasses overriding/extending functionality.
> > 
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED]
> > On Behalf Of nz_mehere
> > Sent: Tuesday, May 02, 2006 5:27 PM
> > To: [email protected]
> > Subject: [flexcoders] how do I prevent users from accessing my super
> > extened class?
> >
> > Hi there,
> >
> > I have writen a class that extends the "VSlider"
> >
> > VSliders have the property of "thumbCount", which is how many little
> > arrows appear on the slider.
> >
> > I want to prevent people from setting there own.
> >
> > I thought I could hide it from them by overriding the "thumbCount"
> > property with a private one, but get an error "Overriding function
> > that is not masked for override".
> >
> > The code is something like this:
> >
> > private function set thumbCount(number:Number):void{
> >       super.thumbCount = number;     
> > }
> >
> > What am I missing?
> >
> >
> >
> >
> >
> > --
> > 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
> >
>
>
>
>
>
>
> --
> 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
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to