I am talking about the "set" and "get" in the function declaration.  

function set blah()

What does the set and get keyword do and why would I want to use it in
this way compared to something like function setBlah()




--- In [email protected], "Scott Hoff" <[EMAIL PROTECTED]> wrote:
>
> What is super special about the syntax that you pasted?
> 
> --- In [email protected], "tjcox1969" <tjc1969@> wrote:
> >
> > I have read the section on functions in the Adobe Programming
> > Actionscript manual, but I see no reference to this type of syntax:
> > 
> > [Bindable]
> > public function set statesNames(value:ListCollectionView):void {
> >     _statesNames = value;
> > }
> >     
> > public function get statesNames():ListCollectionView {
> >     return _statesNames;
> > }
> > 
> > Can someone point me to some documentation on this or give a brief
> > explanation.  I am looking at a sample I found and it works, but I
> > want to know why and when to use this type of "function set blah()"
> > syntax over "function setBlah()"
> > 
> > Thanks!
> >
>


Reply via email to