In the application tag, declare a namespace:

<mx:Application ... xmlns:mystuff="myStuff.*" ...>

 

Then do:

<mystuff:CustomGrid/>

 

Tracy

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of whatabrain
Sent: Wednesday, July 16, 2008 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I instantiate a subclassed flex control in
mxml?

 

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/>

 

Reply via email to