Skip to main content
BladePoint
Inspiring
May 12, 2019
Question

Typo in official Adobe docs for Application Domains

  • May 12, 2019
  • 0 replies
  • 187 views

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

  }

This topic has been closed for replies.