How to properly use .SWC packages in Flash CS 4

为君一笑 提交于 2019-12-25 06:35:00

问题


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.


回答1:


(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.



回答2:


Depending on the intent of SWC file, you can just drag it into your Library, alongside all your other MovieClips etc.

It seems to me that this is the way AS3Signals wants to be used - it's not a Flash "Component", per se. Adding it to the Components directory will only make it available in the Components panel, where you can easily drag it into your Library, or maybe onto the Stage (which has the same effect).

Any progress or detail available?



来源:https://stackoverflow.com/questions/2891979/how-to-properly-use-swc-packages-in-flash-cs-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!