Highlighted

Typo in official Adobe docs for Application Domains

Explorer ,
May 12, 2019

Copy link to clipboard

Copied

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

  }

TOPICS
Discussions

Views

58

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Typo in official Adobe docs for Application Domains

Explorer ,
May 12, 2019

Copy link to clipboard

Copied

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

  }

TOPICS
Discussions

Views

59

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 12, 2019 0

Have something to add?

Join the conversation