3 Replies Latest reply on Jun 24, 2010 7:59 AM by Anirudh Sasikumar

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




      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,