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

Typo in official Adobe docs for Application Domains

Explorer ,
May 12, 2019 May 12, 2019

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

  }

163
Translate
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