Adobe AIR project: adding SWC files

Answered

I've successfully created my first AIR project with IntelliJ and I can debug & compile.

Now I want to add a SWC file to the project. The SWC is compiled from Adobe Animate and includes only graphic assets. The clips are exported from the XFL file library, with a linkage name. However, IntelliJ doesn't seem to be aware of these assets: they are not suggested by auto-completion, and are marked as "Unresolved type" when I type them manually.

I have added the SWC directory (or the file directly) via File > Project Structure > Project Settings > Libraries (and also via File > Project Structure > Platform Settings > Global Libraries, just to see). Is there something more to do so that the SWC assets might be taken into account?

0
3 comments

Please add the dependencies directly to the module:

1
Avatar
Permanently deleted user

That's perfect, thanks a lot :)

0

This was super helpful. 

Project Settings > Modules > Dependencies tab 

  1. click the + button as shown above
  2. click "New Library..."
  3. select the SWC you want to add to the project
0

Please sign in to leave a comment.