3 Replies Latest reply on Dec 29, 2006 9:07 AM by reid@umn.edu

    How do you compile using mxmlc.exe?

    ac361 Level 1
      Hi. I'm trying to generate my first Flex app using this MXML file (please see below). I'm using the Flex SDK 2. From the command line, I issue the following command: mxmlc C:\Inetpub\wwwroot\GrowthServlet\growthrates.mxml

      It's throwing message:
      Loading configuration file C:\Documents and Settings\cougarmana\My Documents\Fle
      x SDK\frameworks\flex-config.xml
      C:\Inetpub\wwwroot\GrowthServlet\GrowthRates.mxml: Error: Could not resolve <mx:
      LineChart> to a component implementation.

      Here's the MXML file's content. Your help is much appreciated.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      backgroundColor="white" backgroundImage=""
      creationComplete="this.servlet.send();">

      <mx:HTTPService id="servlet"
      url=" http://localhost:2804/GrowthServlet/Default.aspx" />

      <mx:LineChart showDataTips="true"
      dataProvider="{this.servlet.lastResult.GrowthRates.Rate}">

      <mx:series>
      <mx:LineSeries />
      </mx:series>

      <mx:verticalAxis>
      <mx:LinearAxis baseAtZero="false" />
      </mx:verticalAxis>

      </mx:LineChart>

      </mx:Application>