topical media & game development
actionscript-example-Caller.ax
actionscript-example-Caller.ax
(swf
)
[ flash
]
flex
package {
import flash.display.*;
public class actionscript-example-Caller extends Sprite {
private var shelteredObject:ShelteredClass;
public function actionscript-example-Caller () {
shelteredObject = new 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);
}
}
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.