I think the Control-Shift-1 functionality is fairly new -- I only got it working after I upgraded FD to Beta 9. But yes, it rocks. You can also use it on your "implements <Interface>" text to generate placeholder functions for everything in that interface. Try it!
Personally, I tend to use getters and setters only when I'm making a class that primarily functions like a Perl hash (or a Python dictionary or whatever the kids are using these days). If I use it to much with other classes, I start to worry that I've created public variables when I shouldn't have, and it constantly distracts me. --T On Tue, Dec 9, 2008 at 8:44 AM, Joel Stransky <[EMAIL PROTECTED]>wrote: > Wow I didn't know that about FD. Gonna have to start using it. I still find > myself wanting to use Flex Dev but that's another thread. > > It's nice to see discussions like this. I feel like some things are > foregone > conclusions and that I'm late to the part but hey, even Grant Skinner is > blogging about cuddling > braces<http://www.gskinner.com/blog/archives/2008/11/curly_braces_to.html > >. > > > For me, it depends on the complexity of the logic involved in calculating > the return. If I'm dealing with a sensible property such as the left > boundary for a group of display children, conditionals tend to read cleaner > when I can just write: > if(this.mouseX > grid.left) rather than if(this.mouseX > grid.getLeft()). > If > the property requires more complex code in order to return a value such as > looping over an array, I use getVal(). > > getters and setters also have certain syntax requirements so I also avoid > using them whenever I need to do something slightly different such as use > multiple parameters. > > On Tue, Dec 9, 2008 at 10:18 AM, Cor <[EMAIL PROTECTED]> wrote: > > > When you open the Startpage of FD you find some more shortcuts. > > HTH > > Cor > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Ian > Thomas > > Sent: dinsdag 9 december 2008 16:14 > > To: Flash Coders List > > Subject: Re: [Flashcoders] use get / set functions or make your own > > > > Ooh - never knew about that. :-) > > > > You learn something every day! > > > > Ian > > > > On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe <[EMAIL PROTECTED]> > > wrote: > > > The magic Context code completion hotkey, which by default is > > Ctrl-Shift-1, > > > when your cursor is over a variable declaration. > > > This awesome hotkey also does cool stuff like generates an event > handler > > > when your cursor is inside an addEventListener declaration... > definitely > > > check it out in the FD docs! > > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > 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 > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > --Joel Stransky > stranskydesign.com > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders