Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

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

$
0
0

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


Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>