Reputation: 23
I'm trying to retrieve the network adaptater in use.
Using this code
But for any reason it can find the "import flash.net.InterfaceAddress" "import flash.net" library.
I dont know why.
see screen errors
I'm using a very recent version of Flash Builder (the latest).
Air SDK came with it.
I found this "airglobal.swc" file at three places.
=> C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\frameworks\libs\air => C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\3.6.0\frameworks\libs\air => C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\frameworks\libs\air
My project is a simple "action script project", not a flex one. But I also tried to create a flex project and encountered the same problem
Upvotes: 0
Views: 266
Reputation: 3193
That package isn't a native flash builder/air library. Its a flash library but only avail in flash, not flash builder.
To import it into flash builder:
Open Flash, on frame one write this action script:
import flash.net.*
var forceImport: InterfaceAddress
Now flash builder has access to that flash package.
Upvotes: 0