I know I'm new to this group, but make sure you have the namespace
added to the top of the MXML.
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mystuff="myStuff.*">
Then you can instantiate with,
<mystuff:CustomGrid/>
Chris
--- In [email protected], "whatabrain" <[EMAIL PROTECTED]> wrote:
>
> Let's say I subclass a standard flex control:
>
> package myStuff {
> public class CustomGrid extends DataGrid {}
> }
>
> How do I instantiate it in mxml? I tried the following, but none of
> them worked:
>
> <mx:CustomGrid/>
> <myStuff:CustomGrid/>
> <mx:myStuff.CustomGrid/>
>