[flexcoders] where to place a subClassedComponent.as file ?

2005-04-27 Thread sanjayd


I have subclassed 'DataGrid' to create my own class (this code resides
in a file called 'FilterableDataGrid.as'):

class acControls.FilterableDataGrid extends mx.controls.DataGrid {
.
.
.
}


then, I use this class in my mxml file, like this:

?xml version=1.0 encoding=utf-8?

mx:Application initialize=initApp()
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:ac=acControls.*
.
.
.
mx:VBox width=100% height=100%

ac:FilterableDataGrid id=dg  headerHeight=40
dataProvider={gridElementObjectsArray}
.
.
.


This is the compile error I get:

Don't know how to parse element
ArcheuscapControls.*:FilterableDataGrid. It is not a known type or a
property of mx.containers.VBox.

Any ideas ?? both the .as  .mxml files are in the same directory.

Thanks in advance.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] where to place a subClassedComponent.as file ?

2005-04-27 Thread Matt Horn

I believe the class has to be in a sudirectory acControls.





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Wednesday, April 27, 2005 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] where to place a subClassedComponent.as
file ?



I have subclassed 'DataGrid' to create my own class (this code
resides
in a file called 'FilterableDataGrid.as'):

class acControls.FilterableDataGrid extends mx.controls.DataGrid
{
.
.
.
}


then, I use this class in my mxml file, like this:

?xml version=1.0 encoding=utf-8?

mx:Application initialize=initApp()
xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:ac=acControls.*
.
.
.
  mx:VBox width=100% height=100%
  
ac:FilterableDataGrid id=dg  headerHeight=40
dataProvider={gridElementObjectsArray}
.
.
.


This is the compile error I get:

Don't know how to parse element
ArcheuscapControls.*:FilterableDataGrid. It is not a known
type or a
property of mx.containers.VBox.

Any ideas ?? both the .as  .mxml files are in the same
directory.

Thanks in advance.







Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service http://docs.yahoo.com/info/terms/ . 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/