To generate both a SWF and SWC I'd suggest to split up your
project, where one subproject has the API code, and the swf
subproject uses that API project to wrap it in a swf. It isn't
possible to generate both a SWF and SWC from the same project.
ASDoc is only available for library (swc-based) projects. This
is because such documentation is generally only used for libraries,
not for an end-user application.
But if you split up your projects in a library project (for the
API) and an end-user project (for the SWF) then you can generate
ASDoc for the library project.