not sure what you mean but sounds a bit like an Interface
There is no friend equivalent in AS3.
Nope, not an interface. It was a keyword in C++ that allowed two different classes to be friends of each other... Basically allowed object B to call private methods on object A.
Thanks Paul for the heads up.
There is not direct equivalent of friend. There is the concept of namespaces. In certain cases you can use namespaces to reduce discoverability of APIs. They are unrestricted (friend restricts access to a pre-declared set of friends) and can’t be used in interfaces, but it is an option.
How would you use namespaces to simulate to reduce discoverability?
Look at the way that the framework code puts certain properties and methods in the mx_internal namespace. To use them, you have to do
use namespace mx_internal;
Gordon Smith, Adobe