I'm developing a new flex library project with the following design requirements:
* api design using logical packages for clarity, etc
* api should not expose private/internal classes
Using the "internal" class modifier prevents me from organizing the api into logical packages.
I believe you can "hide" classes through the use of namespaces but I haven't found any samples that apply to the classes, only functions.
Can anyone help me out here?
i guess i dont follow your requirements do you want to hide the class as whole? if thats the case why not just make every method private?
Namespaces do not hide classes (as far as I know). I ddn't know you could put a class in a custom namespace (ala mx_internal ).
But, you can use the excludeClass metadata to prevent a class from showing up in code hinting. There are lots of examples of this in he Flex Framework. I think there is a CalendarLayout class related to the DateChooser you can dig up as an example.