Re: [Flashcoders] AS3 finally..

2013-05-27 Thread Paul A.
Out of curiosity, has anyone on the list actually used private classes for anything other than enforcing singleton creation? If you have, please tell us and say why it was the best solution. On 27/05/2013 06:50, Cor wrote: I think they can be usefull to create objects with a lot of its own fu

Re: [Flashcoders] AS3 finally..

2013-05-27 Thread tom rhodes
i generally use them for something teeny tiny that is only needed in the scope of the main class and doesn't feel right in it's own file as it's never used anywhere but the main class. On 27 May 2013 12:24, Paul A. wrote: > Out of curiosity, has anyone on the list actually used private classes

RE: [Flashcoders] AS3 finally..

2013-05-27 Thread Cor
I use this for objects only needed in the scope of that particular class. I don't know if this is "the best solution"... I guess this depends on what you are trying to achieve. It works for me. Regards Cor On 27 May 2013 12:24, Paul A. wrote: > Out of curiosity, has anyone on the list actually

Re: [Flashcoders] AS3 finally..

2013-05-27 Thread Paul A.
On 27/05/2013 11:37, tom rhodes wrote: i generally use them for something teeny tiny that is only needed in the scope of the main class and doesn't feel right in it's own file as it's never used anywhere but the main class. Why wouldn't you just incorporate that functionality as part of the clas

RE: [Flashcoders] AS3 finally..

2013-05-27 Thread Cor
As for my usage: I create at any given moment one or more objects of the helper class within one or more functions in the containing class. excuse the poor English, I am Dutch. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figl

Re: [Flashcoders] AS3 finally..

2013-05-27 Thread Paul A.
I have written a lot of AS3 code with classes and before that was mostly a Java developer and I have yet to have written an AS3 project that has used private classes for anything at all but singleton enforcement. I'm trying to get a handle on whether I've been missing out or people are using

RE: [Flashcoders] AS3 finally..

2013-05-27 Thread Rick Hassen
Thats a good question and well phrased. And I wish I could give you as good an answer, however, Collin Moocks "Lost Weekend" videos, which can be accessed through Safari Books, goes into why and when you'd use them, quite nicely with examples and a q&a. > Date: Mon, 27 May 2013 12:05:44 +010

Re: [Flashcoders] AS3 finally..

2013-05-27 Thread Paul A.
On 27/05/2013 18:03, Rick Hassen wrote: Thats a good question and well phrased. And I wish I could give you as good an answer, however, Collin Moocks "Lost Weekend" videos, which can be accessed through Safari Books, goes into why and when you'd use them, quite nicely with examples and a q&a. S