1

I have an actionscript project in Flash Builder and get 1172 errors on these lines:

import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;

i'm comming from flash where i have to set in the publish settings that i want to compile an AIR application. I can't find an equivalent in flash builder.

Mat
  • 567
  • 8
  • 24

1 Answers1

4

In Flash Builder 4, I don't think you can create an ActionScript only AIR Project using the project setup wizard. You'll have to create an ActionScript project, and then manually add the AIR libraries to the classpath.

JeffryHouser
  • 39,401
  • 4
  • 38
  • 59
  • That's correct. You can't create an Air app with pure actionscript. You need the Air SDK + Flex SDK together for this to work. – J_A_X Mar 27 '11 at 08:32
  • great, that worked! I added 'FlashCS5root/Common/Configuration/ActionScript 3.0/AIR2.0/airglobal.swc' to the library path. thanks! – Mat Mar 27 '11 at 09:12
  • thanks for including this comment, Mat. It just solved an AIR issue for me. – Emmett Butler Jul 19 '14 at 17:39