6 Replies Latest reply on Apr 26, 2012 2:07 PM by GordonSmith

    Does AS3 have the concept of Friend classes?


      C++ has a concept of Friend classes. If I recall (been a LONG time since college), it was a way that you could share one objects functionality with another class and only that other class.  Other classes that were not declaired as friends could not access functionality.  I was wondering if Actionscript had a similar concept.


      I have public methods on some of my classes which exposes potential pitfalls of clients of my SWF files. So, I'm looking for a way to better bullet proof my code such that users of my classes/swf files use them in the proper way, proper context.  I don't want them calling the wrong public methods when a given public method was intended to be used by some other class.


      Hope this makes since.