Flamin_
Flamin_

Reputation: 23

Actionscript and Flex

I'm trying to retrieve the network adaptater in use.

Using this code

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b8f6c0-7ffe.html#WSb2ba3b1aad8a27b04a6701d612482d399e5-8000

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

Answers (1)

LessQuesar
LessQuesar

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
  1. Goto export properties of flash and choose the SWC option.
  2. Copy SWC file into your flash builder project.
  3. Goto properties of your project choose "flex build path" and then "Add swc".
  4. Point to your SWC.

Now flash builder has access to that flash package.

Upvotes: 0

Related Questions