I think you need to post some more code so
we can see what's going on. I believe that error means that you
have code that does:
class Foo {
class Bar {
}
}
or something similar. ActionScript
doesn't support inner-classes. So if you're not slapping your
forehead because of an obvious mistake we'll need to see more to figure
out why it thinks you have nested classes.
Matt
-----Original Message-----
From: mardellrampton
[mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 3:21
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Class and
interface definitions cannot be nested.
I've created an Actionscript custom cell renderer
which lives in the
same directory as the mxml component which uses
it. The component is
nested in the app as follows:
main.mxml
child1.mxml
child2.mxml calls cell
renderer
When I run main.mxml, I get an error (as
below). If I make child1 or
child2 an application, the cell renderer works
fine.
Error ComboCellRenderer.as:12
Class and interface definitions cannot be nested.
12: class ComboCellRenderer extends UIComponent
13: {
|