Hi Tracy, Thank you.
When I was testing I was always adding my AS class as a child of a UI component, and was getting the error: "Component declarations are not allowed here. (Note: visual children must implement mx.core.IUIComponent)" So, you are correct saying that it needs to be at the top level... Thanks again! On 1/9/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
Absolutely. You can instantiate any custom AS class using a tag. The AS class need not extend anything, but often you will want event dispatching and such. The tag will probably have to be at the top-level, since the standard containers will not be set up to allow it as a child. Tracy ------------------------------ *From:* [email protected] [mailto:[EMAIL PROTECTED] *On Behalf Of *David Harris *Sent:* Sunday, January 07, 2007 8:41 PM *To:* [email protected] *Subject:* [flexcoders] Is it possible to have an invisible component? Does anyone know if the is a simple way to have a <namespace:Tag /> that has no visible state? I have an AS class that I would like to call <namespace:MyASClass />... Cheers, David

