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
> [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
>



-- 
--Joel Stransky
stranskydesign.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to