PDA

View Full Version : Components/SWC



gregmax
June 5th, 2009, 10:55 AM
How do you make components/SWC files? Are they same thing? I would like to build an API, but I don't know where to begin. Hopefully I am making sense.

Can anyone please tell me or link me a resource on how to make a SWC?

Thank you

senocular
June 5th, 2009, 11:01 AM
SWCs are kind of an end-game option after you build an API (and the implementation of that API). Do you have something you want to make a SWC out of? Or do you just have an idea for a component? There's also differences between GUI components and simple code libraries... And GUI components will change depending on what framework (if any) that your using. sO what are you lookign to do?

gregmax
June 5th, 2009, 11:06 AM
Hello Senocular, thanks for the response. I have a flash portal site (very new, but has good potential) that I would like to make an API for developers like the flash portal site Kongregate and nonoba. I would like a way for the developers to submit their scores of the users who played the their games.

I am assuming a SWC is the way to go with this because that is what the other two protal sites use, and I assume it keeps the developers looking too deeplying into the code.

What is your take on what I should do?

senocular
June 5th, 2009, 11:22 AM
In that case, a SWC is ideal since its easy for developers to download and use.

In Flash you can make select the option to export a FLA as a SWC from the Publish settings (a checkbox in the Flash tab) or right-click on a library item to export that item as a SWC. The Flex SDK also has a SWC compiler you can use. I'm not sure if Flex Builder (err Flash Builder) has a GUI for doing this or not, but you can easily find instructions of using compc on the web if you need them.

gregmax
June 5th, 2009, 01:43 PM
Thanks Senocular, I got it working the first time through.