title: Can't import UIComponent in Flash CS4?
body: <p>So I add this line to my .FLA file in the first frame's script:</p>
  
  <pre><code>import mx.core.UIComponent;
  </code></pre>
  
  <p>I receive this error:</p>
  
  <pre><code>1093: Syntax error.
  </code></pre>
  
  <p>in UIComponent.as line 54. Double click on that in the Compiler Errors panel and I see:</p>
  
  <pre><code>#include "../core/ComponentVersion.as"
  </code></pre>
  
  <p>OK, the syntax error is likely in ComponentVersion.as ... except it really, really shoud not be. And if I load that file into the Flash editor and syntax check it has no errors. However, if I copy the sole non-comment line of that file (static var version:String = "2.0.2.127"; ) into UIComponent in place of the #include, it works????</p>
  
  <p>Now I get this error:</p>
  
  <pre><code>5007: An ActionScript file must have at least one externally visible definition.
  </code></pre>
  
  <p>Excuse me? This is a class definition file suppled with Flash!</p>
  
  <p>Any clues would be gratefully received.</p>
  
  <p>I'm using Flash CS4 (10.0.2). </p>