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 flexcoders@yahoogroups.com, Scott Hoff [EMAIL PROTECTED] wrote:
What is
What is super special about the syntax that you pasted?
--- In flexcoders@yahoogroups.com, tjcox1969 [EMAIL PROTECTED] 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
See:
http://livedocs.adobe.com/flex/201/html/basic_as_139_08.html#166714
Search for getter or setter on livedocs for more.
--- In flexcoders@yahoogroups.com, tjcox1969 [EMAIL PROTECTED] wrote:
I have read the section on functions in the Adobe Programming
Actionscript manual, but I see no
@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Hoff
Sent: Tuesday, April 24, 2007 4:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help on the syntax for function set
blah(param:String)
What is super special about the syntax
OK, where did you see this to raise the question? Does wherever you
took the code from work?
--- In flexcoders@yahoogroups.com, Scott Hoff [EMAIL PROTECTED] wrote:
What is super special about the syntax that you pasted?
--- In flexcoders@yahoogroups.com, tjcox1969 tjc1969@ wrote:
I have
The set and get method are what you call setters and getters (DUH!)
and they are used when you have private members of a class and you
want to give the user the ability to change their value. Take this
example for instance:
class myObject {
private var _id:Number;
..
}
let's say you have
6 matches
Mail list logo