And file an Enhancement for Flex 3 at http://bugs.adobe.com/jira regarding specific APIs whose privateness is keeping you from doing something that you need to do. Be sure to explain what you are trying to do, because often it turns out that there IS a way to do it using public and protected APIs. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, June 13, 2007 11:18 PM To: [email protected] Subject: RE: [flexcomponents] Private vs Protected Yup, sorry. From our perspective, anything we make public or protected has to be supported through the next major release if not longer. So we're chicken and when we're not absolutely happy with the way we've coded something we keep it private. Which definitely interferes with subclassing for sure, but we want to play it safe... Anyway, if you're really desperate, just copy the source, rename the class and do what you need. -Alex ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of reflexactions Sent: Wednesday, June 13, 2007 11:10 PM To: [email protected] Subject: [flexcomponents] Private vs Protected One thing that has surprised me when looking through the framework source has been the amount of private var/functions. I would have thought that by default they should be protected rather than private. I know you can argue they are private for a good reason, the framework authors dont want you to access them, BUT in the real world there are situations which arent so black and white. For example there are public or protected functions which I as a component developer need to override, its easy to do this, then I can do my work and call super or conversely call super and then do my work. However there are occasions where what I want to do is to add some code in the middle of the function, which means I need to replace it. This is again easy to do until you find the function you are replacing accesses a private var, then it is impossible to replace the function.
