Search code examples
flashactionscript-3swc

How to properly use .SWC packages in Flash CS 4


I've googled a lot trying to find how to properly import and use .swc files in Flash CS 4, tried lots of different methods but none seem to work.

What I've done is: 1. Placed it in my "D:\Program Files (x86)\Adobe\Adobe Flash CS4\en\Configuration\Components" folder. It does however not show up in the component inspector. 2. Added it in Publishing Settings as a Library and External Library, still can't seem to use it.

I've also tried adding "import org.osflash.signals;" after each method but I receive the error "1172: Definition org.osflash:signals could not be found."

So what I'm asking for is an easy way to get the .swc package working code-wise with all classes imported etc. The .swc file is as you may have guessed as3signals.

Thanks in advance.


Solution

  • (shortcut are for PC)

    • Put your library file wherever you want
    • Now you have two choices:
      1. You want to be able to use it for all the project you made
        • go into preferences panel (ctrl+U)
        • click on the button action script3 parameters, and add the path where is your swc (click on the second '+' button )
      2. You want it only for your current project
        • go into publication parameters (ctrl+shift+F12)
        • click on the flash tab
        • click on the parameters button in front of actionscript 3.0
        • click on the library path tab, and add your swc path.