Oh, I use that one to create functions and yes a getter/setter is also a function. My bad..
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki Sent: dinsdag 9 december 2008 15:37 To: Flash Coders List Subject: Re: [Flashcoders] use get / set functions or make your own select the variable, ctrl-shift-1 ;) On Tue, Dec 9, 2008 at 9:26 AM, Cor <[EMAIL PROTECTED]> wrote: > Yes I prefer FD also, but what is the shortcut for getters and setters?? > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki > Sent: dinsdag 9 december 2008 15:16 > To: Flash Coders List > Subject: Re: [Flashcoders] use get / set functions or make your own > > Since I like FlashDevelop, with a keyboard shortcut and a click I create > setters and getters. > > On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman < > [EMAIL PROTECTED] > > wrote: > > > Hi, > > > > I'm still in the middle. I used to use getMyVariable setMyVariable for > > everything, now I usually use public variables for entity/value objects. > I > > still hate not being able to see whether something is a variable or > > function, so for everything else than very simple objects I prefer > > setMyVariable getMyVariable instead of get set. I find it way easier to > > read > > back my code that way, so it depends on whether I know whether I am going > > to > > have to read it back or not ;). > > > > greetz > > JC > > > > > > > > > > On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) > < > > [EMAIL PROTECTED]> wrote: > > > > > i would have to agree - i use the built in ones and can't see any > benefit > > > from using bespoke ones apart from maybe being able to use the variable > > > name > > > i want rather than adding extra characters to it (although i use a > > leading > > > underscore for class variables anyway) > > > > > > On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas <[EMAIL PROTECTED]> wrote: > > > > > > > I use Actionscript getters and setters. > > > > > > > > Because I can start off using ordinary public properties, and change > > > > them into getters and setters if I need more control/notification > > > > without changing any of the code that _uses_ my class. > > > > > > > > In order to achieve that otherwise, I'd have to make a getValue() and > > > > setValue() for every single public property (as is done in Java). And > > > > a fair few of those would simply be this._property=value (setter) or > > > > return this._property (getter) i.e. essentially just placeholder > > > > methods that bloat the code. > > > > > > > > The beauty of the actionscript get and set functions is that they are > > > > indistinguishable from public properties from the outside of the > > > > class. It's a huge improvement over Java. > > > > > > > > Ian > > > > > > > > On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott > > > > (thefieldcomic.com) <[EMAIL PROTECTED]> wrote: > > > > > hi guys > > > > > > > > > > quick poll - Do you use the actionscript getter/setter functions or > > do > > > > you > > > > > make your own, and why. > > > > > > > > > > I've noticed with a lot of the public domain code (like SWFAddress, > > for > > > > > instance) that you see a lot of 'public function getVariable()' > type > > > > getters > > > > > instead of using the flash 'public function get variable()' adobe > > > > > recommended getters(and setters) and i was wondering why people do > > > this? > > > > > > > > > > thanks > > > > > a > > > > > _______________________________________________ > > > > > Flashcoders mailing list > > > > > [email protected] > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > _______________________________________________ > > > > Flashcoders mailing list > > > > [email protected] > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > _______________________________________________ > > > Flashcoders mailing list > > > [email protected] > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > _______________________________________________ > > Flashcoders mailing list > > [email protected] > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > http://ericd.net > Interactive design and development > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008 > 9:59 > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- http://ericd.net Interactive design and development _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008 9:59 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

