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

how to solve undeclared identifier error in code that is outside of package scope

New Here ,
Oct 17, 2019 Oct 17, 2019

Copy link to clipboard

Copied

Hi, I am trying to compile some AS code into JS using Jangaroo. Most of it has gone right, but now the compiler gives an "Undeclared identifier" error on identifiers that are imported from other packages and are outside of the package scope. Here is what my code looks like:

 

package foo.bar
{
  import foo.baz.A;
  class X
  {
    var a:A = new A;
  }
}
import foo.baz.B;
class Y
{
  var b:B = new B;
}
// B gives underclared identifier

 

 

How can I solve this please?

TOPICS
ActionScript , Code , Error , How to

Views

168

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