How do you set a "Document class" from an SWC in Flash CS4?

Posted by Flash Challenge on Stack Overflow See other posts from Stack Overflow or by Flash Challenge
Published on 2010-06-03T01:40:23Z Indexed on 2010/06/03 1:44 UTC
Read the original article Hit count: 351

Filed under:
|
|
|
|

I have an SWC with a class called Content. I want to set it as the "Document Class" in Flash. However, after setting up the SWC in the .fla, I am receiving an error message saying that "A definition for the document class could not be found in the classpath,..." Setting up the direct class folder works fine, but I need to distribute this SWC and do not want to include the sources.

Is it possible to use a class as the Document Class if it resides in an SWC?

I've found some links that seem to indicate no, but I need to find out definitively.

http://balazs.sebesteny.com/document-class-from-swc/

forums.adobe.com/thread/452045

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about class