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

Type 1046: Type was not found or was not a compile-time constant: NetworkInfo

New Here ,
Jun 23, 2010 Jun 23, 2010

Copy link to clipboard

Copied

Hello,

Just started playing with the new AIR functions NetworkInfo and  NetworkInterface, but can't build ...

This is the example I started from: tourdeflex

But these lines cause errors:

var networkInfo:NetworkInfo = NetworkInfo.networkInfo;
var networkInterfaces:Vector.<NetworkInterface> = networkInfo.findInterfaces();

Looks like it's not building with the latest AIR2, although my app.xml looks OK:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.0">

And my Flex Build Path is:

c:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0

Any ideas on how to solve it?

Thanks a lot,

Frank

Views

2.4K

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

correct answers 1 Correct answer

Adobe Employee , Jun 23, 2010 Jun 23, 2010

AIR 2 isn't bundled with Flash Builder 4.0.0. FB currently bundles 1.5. On the AIR dev tools page http://www.adobe.com/products/air/tools/ you can find this link http://kb2.adobe.com/cps/495/cpsid_49532.html that describes how to use the AIR SDK by copying then overlaying the required files. The docs reference 1.5, but they are applicable to 2.0.

Once you've done this, add the new SDK in FB under Preferences > Flash Builder > Installed SDKs and point your project to the new SDK.

Jason San Jose

Soft

...

Votes

Translate

Translate
Adobe Employee ,
Jun 23, 2010 Jun 23, 2010

Copy link to clipboard

Copied

AIR 2 isn't bundled with Flash Builder 4.0.0. FB currently bundles 1.5. On the AIR dev tools page http://www.adobe.com/products/air/tools/ you can find this link http://kb2.adobe.com/cps/495/cpsid_49532.html that describes how to use the AIR SDK by copying then overlaying the required files. The docs reference 1.5, but they are applicable to 2.0.

Once you've done this, add the new SDK in FB under Preferences > Flash Builder > Installed SDKs and point your project to the new SDK.

Jason San Jose

Software Engineer, Flash Builder

Votes

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
New Here ,
Jun 24, 2010 Jun 24, 2010

Copy link to clipboard

Copied

thanks a lot Jason!

Votes

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
Adobe Employee ,
Jun 24, 2010 Jun 24, 2010

Copy link to clipboard

Copied

LATEST

As of today, Flash Builder does not ship with AIR 2 in it.

You need to manually overlay AIR 2 SDK on top of your 4.0.0 SDK.

See http://stackoverflow.com/questions/3040401/does-flash-builder-4-now-use-air-2

Votes

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