package { import flash.display.*; public class actionscript_misc_Caller extends Sprite { private var shelteredObject:actionscript_misc_ShelteredClass; public function actionscript_misc_Caller () { shelteredObject = new actionscript_misc_ShelteredClass(); callSecretMethod(); displaySecret(); } public function callSecretMethod ():void { var key:Namespace = shelteredObject.getRestrictedNamespace(this); if (key != null) { shelteredObject.key::secretMethod(); } } public function displaySecret ():void { var key:Namespace = shelteredObject.getRestrictedNamespace(this); if (key != null) { trace(shelteredObject.key::secretData); } } } }