I am trying to understand how to use an swc file I have in Flash CS4.
As I search this subject on the web regarding flesh there are 2 issues: 1. That I know how to deal with Flex and the explanations are referring flex. 2. I haven't found 1 simple example t开发者_开发问答hat demonstrates where to put the swc file, what to write on the fla in order to make it work, etc...
I want to ask if someone knows of a simple exampe - or - step-by-step example so that I would know how it works...
Alon
You can put the swc file wherever you want. Quite often it is put in a 'libs' folder at the same level as the 'src' folder.
You then need to link the swc to your fla. You do this by File>Publish Settings>Flash>Settings>Library Path>Browse to SWC File (the little red envelope)
You will now be able to reference assets and code within the swc. If you created the swc or there is an API, it will be much easier for you, especially if you are working within the Flash IDE.
you can change the .swc extention to .zip and then extract the contents. That way you can at least get at some or most of the code if you wanted to convert its capabilities into a class or external AS.
精彩评论