You can take out your component and create a new library project out of it (this will give you .swc), that you can add to your library files in your current project. You might need to open up your library component a bit to enable cross communication (maybe via event/APIs/callBack Functions).
To create a library project please refer this
You got me on the right track! I created a flex library project and added the reference to my employee lookup project. However, I'm running into errors with my service calls. After I linked my EmployeeLookUp application to my Flex library project, I get several errors in my library project about the service calls. Is the library project able to hold service calls as well or do these need to be declared in the project that imports the library?
All of my MXML, Actionscript Functions, and Service calls are in the same file. Im using the built in RDS service generator to create my calls instead of RemoteOject. I'm not sure if this matters.
Here is the error that displays in my library project. LDAP is the name of my ColdFusion CFC that retreives the information remotely and returns it to Flex.
"A file found in a source-path must have the same package structure 'src.services.ldap', as the definition's package, 'services.ldap'."
Looking at that error, it sounds like RDS saw the src directory as a package folder for some reason. Double check your libarary project and make sure that 'src' is defined as the source directory, not as a package.
I solved my problem above by removing the service calls and just leaving the visual components. This allowed me to build the SWC. After building the SWC, I imported it into another project, and the window was then selectable in the design view of Flash Builder.
However, I'm still unsure how to connect the custom component to data. Is this something that is done from the library project side, or is it done from the application that uses the SWC library?