actionscript 3 - Error: Could not resolve <mx:columns> to a component implementation -


i running issue error in flash web application compile time

error: not resolve <mx:columns> component implementation. 

here used there (and compile)

<?xml version="1.0" encoding="utf-8"?> <mx:box xmlns:mx="http://www.adobe.com/2006/mxml" verticalscrollpolicy="auto"> <mx:advanceddatagrid id="mydatagrid"              width="100%"             showheaders="false"              includeinlayout="{mydatagrid.visible}"             defaultleaficon="{null}"             horizontalgridlines="true"             verticalgridlines="true"             horizontalgridlinecolor="#e4e4e4"             verticalgridlinecolor="#e4e4e4"             rowcount="6"             minheight="94"             variablerowheight="true"             selectable="false"             >        <mx:columns>         <mx:advanceddatagridcolumn  datafield="property" headertext="property" backgroundcolor="#e5eff5" width="0.5" wordwrap="true"/>         <mx:advanceddatagridcolumn  datafield="value" headertext="value" backgroundcolor="white" width="0.5" itemrenderer="mycustomrenderer"/>         <mx:advanceddatagridcolumn  datafield="rowidentifier" visible="false"/>     </mx:columns>  </mx:advanceddatagrid>  </mx:box> 

now want change following

//in actionscript package widgets { import mx.controls.advanceddatagrid;  public class customadvanceddatagrid extends advanceddatagrid {     public function customadvanceddatagrid()     {     }      override protected function measure():void     {         super.measure();         if(this.dataprovider != null && this.dataprovider.length > 0)         {             this.measuredheight = this.measureheightofitems(0, dataprovider.length);         }     } } }   // in modified mxml use subclass <?xml version="1.0" encoding="utf-8"?> <mx:box xmlns:mx="http://www.adobe.com/2006/mxml"      xmlns:customwidgets="widgets.*"     verticalscrollpolicy="auto"> <customwidgets:customadvanceddatagrid id="mydatagrid"              width="100%"             showheaders="false"              includeinlayout="{mydatagrid.visible}"             defaultleaficon="{null}"             horizontalgridlines="true"             verticalgridlines="true"             horizontalgridlinecolor="#e4e4e4"             verticalgridlinecolor="#e4e4e4"             rowcount="6"             minheight="94"             variablerowheight="true"             selectable="false"             >        <mx:columns>         <mx:advanceddatagridcolumn  datafield="property" headertext="property" backgroundcolor="#e5eff5" width="0.5" wordwrap="true"/>         <mx:advanceddatagridcolumn  datafield="value" headertext="value" backgroundcolor="white" width="0.5" itemrenderer="mycustomrenderer"/>         <mx:advanceddatagridcolumn  datafield="rowidentifier" visible="false"/>     </mx:columns>  </customwidgets:customadvanceddatagrid>  </mx:box> 

i have added mx.swc flex compiler path suggested in stackoverflow link did not help.

any appreciated.

since subclass of advanceddatagrid in different namespace, columns member needs in same namespace:

<customwidgets:customadvanceddatagrid ...>     <customwidgets:columns>         <mx:advanceddatagridcolumn ...>     </customwidgets:columns> </customwidgets:customadvancedatagrid> 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -