views:

127

answers:

2

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();

Any ideas on how to solve it?

Thanks a lot, Frank

A: 

Are they run time errors or compile time errors?

The most common reason I see errors like that is because there is a version difference between a SWC and the Flex SDK that you are compiling your project against.

www.Flextras.com
compile time ...I'm compiling with SDK 4
Frank
Are you sure you're project is set up to USE AIR 2? I'm pretty sure that NetworkInfo is an AIR 2 specific class.
www.Flextras.com
A: 

got the solution on the adobe forum

Frank