getSize/setSize because setSize can return a value when setting a property whereas a getter/setter cannot.
However, getter/setters are perfect for binding in Flex whereas you cannot bind to methods. Additionally, getter/setters make it easier to refactor a property later on in development when everyone sets it. This way, you can still trigger stuff without changing all of the other classes that have already used it. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, February 08, 2006 6:36 PM Subject: [Flashcoders] Q:getter setters vs accessor methods Hi Just wondering if there was a consensus on which use of getter/setters is used most often traditional getter/setters ie public function get Size():Number{} or accessor methods public function getSize():Number{} Which do you prefer and why...? [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca -------------------------------------------- "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

