I am working on a library that I wish to hide the internals of to the outside world.
I figured I can use ‘internal class’ where ever I wanted to hide the class,
How ever to my understanding, declaring a class in namespace test.NS1 means it can only
access classes defines in test.NS1 and nothing else.
For example,
(both in the same library)
/src/NS/test.as - internal class
/src/NS/test2/test2.as - internal class
test / test2 cannot see each other.
Am I missing something here? or is there no proper way to hide my internal classes yet let them talk within the library ?
The namespace “internal” restricts access to classes defined within the same package. Therefore, a class
com.mycompany.app.Foocan see the internal classcom.mycompany.app.Bar, but notcom.mycompany.app.data.Baz.See http://www.adobe.com/livedocs/flex/201/langref/statements.html#internal