Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autogenerate get and set functions from class variables

Status
Not open for further replies.

houen

Programmer
Dec 29, 2007
3
DK
Hi all

I have created a site to ease the evelopment of good object oriented AS code.
You can use it to paste in your private instance variables and ther server responds with corresponding get and set functions
EXAMPLE:

private var _email:
String; private var _pageCount:Number

Becomes:

//-------------QUERIES-------------
public function get_email(): {
return _email;
}
public function get_pageCount():Number {
return _pageCount;
}
//-------------COMMANDS------------
public function set_email(email:) {
_email = email;
}
public function set_pageCount(pageCount:Number) {
_pageCount = pageCount;
}


Hope you find it useful

PS: It also works for C#,PHP, Java and C++ BTW
 
[tt]private var boo:Boolean;[/tt]

No suitable instance variables found. Are they formatted right?

-> Yes it is formatted right!


Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top