title: using amxmlc to compile .as into .swf from the command line
body: <p>Here's what I'm doing:</p>
  <pre><code>amxmlc -load-config obj\config.xml
  </code></pre>
  <p>Here's what I'm getting:</p>
  <blockquote>
  <p>Error: Missing builtin type Object</p>
  <p>Error: Unable to build SWF C:\Users\m\work\project\bin\ApplicationName.swf</p>
  </blockquote>
  <hr />
  <p>Here are the contents of config.xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;!--This Adobe Flex compiler configuration file was generated by a tool.--&gt;
  &lt;!--Any modifications you make may be lost.--&gt;
  &lt;flex-config&gt;
    &lt;target-player&gt;11.8&lt;/target-player&gt;
    &lt;benchmark&gt;false&lt;/benchmark&gt;
    &lt;static-link-runtime-shared-libraries&gt;true&lt;/static-link-runtime-shared-libraries&gt;
    &lt;compiler&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::debug&lt;/name&gt;
        &lt;value&gt;false&lt;/value&gt;
      &lt;/define&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::release&lt;/name&gt;
        &lt;value&gt;true&lt;/value&gt;
      &lt;/define&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::timeStamp&lt;/name&gt;
        &lt;value&gt;'11/26/2013'&lt;/value&gt;
      &lt;/define&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::air&lt;/name&gt;
        &lt;value&gt;true&lt;/value&gt;
      &lt;/define&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::mobile&lt;/name&gt;
        &lt;value&gt;true&lt;/value&gt;
      &lt;/define&gt;
      &lt;define append=&quot;true&quot;&gt;
        &lt;name&gt;CONFIG::desktop&lt;/name&gt;
        &lt;value&gt;false&lt;/value&gt;
      &lt;/define&gt;
      &lt;optimize&gt;true&lt;/optimize&gt;
      &lt;omit-trace-statements&gt;true&lt;/omit-trace-statements&gt;
      &lt;verbose-stacktraces&gt;false&lt;/verbose-stacktraces&gt;
      &lt;source-path append=&quot;true&quot;&gt;
        &lt;path-element&gt;C:\Users\m\work\project\src&lt;/path-element&gt;
        &lt;path-element&gt;C:\Program Files (x86)\FlashDevelop\Library\AS3\classes&lt;/path-element&gt;
      &lt;/source-path&gt;
    &lt;/compiler&gt;
    &lt;file-specs&gt;
      &lt;path-element&gt;C:\Users\m\work\project\src\com\client\ApplicationName.as&lt;/path-element&gt;
    &lt;/file-specs&gt;
    &lt;default-background-color&gt;#FFFFFF&lt;/default-background-color&gt;
    &lt;default-frame-rate&gt;30&lt;/default-frame-rate&gt;
    &lt;default-size&gt;
      &lt;width&gt;1920&lt;/width&gt;
      &lt;height&gt;1080&lt;/height&gt;
    &lt;/default-size&gt;
  &lt;/flex-config&gt;
  </code></pre>
  <p>And here's ApplicationName.as:</p>
  <pre><code>package com.client {
      
      import flash.display.MovieClip;
      import flash.desktop.NativeApplication;
      import flash.events.Event;
      import flash.display.Sprite;
      import flash.display.StageAlign;
      import flash.display.StageScaleMode;
      import flash.ui.Multitouch;
      import flash.ui.MultitouchInputMode;
      
      public class ApplicationName extends MovieClip {
          
          public function ApplicationName () {
           
              stage.scaleMode = StageScaleMode.NO_SCALE;
              stage.align = StageAlign.TOP_LEFT;
              stage.addEventListener(Event.DEACTIVATE, deactivate);
              Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
          }
          
          private function deactivate(e:Event):void 
          {
              // make sure the app behaves well (or exits) when in background
              //NativeApplication.nativeApplication.exit();
          }
      }
      
  }
  </code></pre>
  <p>I can build this fine from Flash, Flash Builder, and FlashDevelop - but whenever I try the command line I get an error. And idea what's up with that?</p>