0 Replies Latest reply on Apr 5, 2011 3:59 AM by mazhar.ali

    initializer error

    mazhar.ali

      hi iam new to flash builder i have mxml file and want to build swf application but an error occur please help me in this regard.

       

      error is " Error: Initializer
      for 'horizontalAxis': values of type mx.charts.chartClasses.IAxis cannot be rep

      resented in text.

       

        <mx:LineChart id="myChart" showDataTips="true" width="578" heigh t="290" x="0" y="0" horizontalAxis="_TrenVUR_CategoryAxis1_c()" series=" [_TrenVU R_LineSeries1_i()]" color="#001f85a7" dataProvider='{myData}'/> "

       

       

      the mxml file code is as follow.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="649" height="502" viewSourceURL="srcview/index.html" creationComplete="{InitTrend();}">
          <mx:Script><![CDATA[
              //Warning: in this unregistered version, no Flex Script will be generated while exporting the Flex Project. Please purchase the full version to get Flex Script at http://www.sothink.com/product/flashdecompiler/index.htm.

       

          ]]></mx:Script>

       

          <mx:Panel title="Trend Viewer" width="598" height="453" layout="absolute">
              <mx:LineChart id="myChart" showDataTips="true" width="578" height="290" x="0" y="0" horizontalAxis="_TrenVUR_CategoryAxis1_c()" series="[_TrenVUR_LineSeries1_i()]" color="#001f85a7" dataProvider='{myData}'/>
              <mx:Grid id="frm" width="568" x="0" y="298" height="58">
                  <mx:GridRow width="100%" height="100%">
                      <mx:GridItem width="77" height="100%">
                          <mx:Label text="Starting Date" textAlign="right"/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Day:"/>
                          <mx:ComboBox id="ddlDays" dataProvider='{arrDays}'/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Month:"/>
                          <mx:ComboBox id="ddlMonths" dataProvider='{arrMonths}'/>
                      </mx:GridItem>
                      <mx:GridItem width="101" height="100%">
                          <mx:Label text="Year:"/>
                          <mx:ComboBox id="ddlYear" dataProvider='{arrYears}'/>
                      </mx:GridItem>
                  </mx:GridRow>
                  <mx:GridRow width="100%" height="100%">
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Ending Date"/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Day:"/>
                          <mx:ComboBox id="ddlDaysE" dataProvider='{arrDays}'/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Month:"/>
                          <mx:ComboBox id="ddlMonthsE" dataProvider='{arrMonths}'/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%">
                          <mx:Label text="Year:"/>
                          <mx:ComboBox id="ddlYearE" dataProvider='{arrYears}'/>
                      </mx:GridItem>
                  </mx:GridRow>
              </mx:Grid>
              <mx:Grid x="134" y="364" height="25" width="371">
                  <mx:GridRow width="100%" height="100%">
                      <mx:GridItem width="40" height="100%">
                          <mx:Label text="Prob:"/>
                      </mx:GridItem>
                      <mx:GridItem width="157" height="23">
                          <mx:ComboBox id="ddlProb" dataProvider='{arrProbs}'/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%"/>
                  </mx:GridRow>
              </mx:Grid>
              <mx:Grid x="69" y="388" height="25" width="436">
                  <mx:GridRow width="100%" height="100%">
                      <mx:GridItem width="182" height="100%"/>
                      <mx:GridItem width="100%" height="23">
                          <mx:Button id="btnOK" label="OK" click="{Func_OK();}"/>
                      </mx:GridItem>
                      <mx:GridItem width="100%" height="100%"/>
                  </mx:GridRow>
              </mx:Grid>
          </mx:Panel>

       

      </mx:Application>

       

      regards mazhar