Copy link to clipboard
On this page, Adobe Flash Platform * Working with application domains, there is some sample code that doesn't compile because the same variable name is used twice. Anyone know how this part should go?
private function completeHandler(event:Event):void
var myGreeter:Class = ApplicationDomain.currentDomain.getDefinition("Greeter") as Class;
var myGreeter:Greeter = Greeter(event.target.content);
var message:String = myGreeter.welcome("Tommy");
trace(message); // Hello, Tommy
Have something to add?