I have found the problem: Name of a class was same as the var. Now I can compile. But at run-time I am getting: Type Coercion failed: cannot convert yardmodel.modulecode::[EMAIL PROTECTED] to mx.controls.listClasses.IListItemRenderer.
--- In [email protected], "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > I have the following code: > import mx.core.UIComponent; > public class hoursSymbolsHeaderRenderer extends UIComponent > { > public function hoursSymbolsHeaderRenderer() > { > super(); > } > > } > But when I do: > var hoursSymbolsHeaderRenderer:ClassFactory = new ClassFactory; > hoursSymbolsHeaderRenderer = new ClassFactory > (hoursSymbolsHeaderRenderer); > I get: > 1067: Implicit coercion of a value of type mx.core:ClassFactory to an > unrelated type Class. > > What am I doing wrong? > > Thanks >

