Mark, is this the actual code or did you edit it before posting? A true top tag in MXML generally has xmlns attributes.
-Alex On 4/28/15, 1:31 PM, "mark goldin" <[email protected]> wrote: >But DataGrid does have set dataProvider function. > >On Tue, Apr 28, 2015 at 3:22 PM, Evyatar Ben Halevi-Arbib < >[email protected]> wrote: > >> Is mx:DataGrid tag the first tag in this custom component? >> Because it basically tells you the parent component doesn't have a >>function >> with the same signature, so it can't override it. >> >> Regards, >> Evyatar >> >> On Tue, Apr 28, 2015 at 10:13 PM, mark goldin <[email protected]> >> wrote: >> >> > I am trying to come up with the following datagrid definition: >> > <mx:DataGrid headerHeight="0" rowHeight="28" >> > dataProvider="{_someData"> >> > <mx:Script> >> > <![CDATA[ >> > override public function set dataProvider(value:Object):void >> > { >> > if (value) >> > { >> > } >> > else >> > { >> > } >> > } >> > ]]> >> > </mx:Script> >> > <mx:columns> >> > ........ >> > >> > I am getting: >> > Method marked override must override another method. >> > >> > Any idea why am I getting it? >> > >> > Thanks >> > >>
