• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Typo in official Adobe docs for Application Domains

Explorer ,
May 12, 2019 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

  }

Views

121

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
community guidelines
no replies

Have something to add?

Join the conversation