开发者

How to properly use .SWC packages in Flash CS 4

开发者 https://www.devze.com 2022-12-31 23:01 出处:网络
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.

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.

Tha开发者_Python百科nks in advance.


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


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号