title: 1067: Implicit coercion of a value of type Class to an unrelated type flash.display:DisplayObject
body: <p>So for instance, I've got three .as files called 'Helicopter.as, Game.as, Blue.as'
  and I also have a .fla file called Helicopter.fla (These files are all suppose to link together, to make the helicopter game) . In the Game.as file, I have the following; </p>
  
  <pre><code>if (blue1.hitTestObject(Helicopter))
  
                  {
                      trace("YOU HIT THE BLOCK!");
  
                      Helicopter.x = 76;
                      Helicopter.y = 217;
                  }
  </code></pre>
  
  <p>I have drawn the so called 'Helicopter'^ using API in a different file called Helicopter.as using this code;</p>
  
  <pre><code>        graphics.beginFill(0x00FF00);
          graphics.drawCircle(0, 60, 35);
          graphics.endFill();
  </code></pre>
  
  <p>However, I originally had the "Helicopter' symbol drawn in the Helicopter.fla file (which I've now deleted), and now that I've drawn the 'Helicopter' using API, I get this error;</p>
  
  <pre><code> ''1067: Implicit coercion of a value of type Class to an unrelated type flash.display:DisplayObject.''
  </code></pre>
  
  <p>Flash doesn't recognise the original Helicopter symbol (in the Helicopter.fla file, because I deleted it). But I want the system to detect the 'circle' drawn using API (In the Helicopter.as file). And I have no idea how to how to name the API drawn circle 'Helicopter', thus I'm getting an error. So how do I name the API circle to 'Helicopter', so the Game.as file recognises it. If you have no idea what I'm talking about, then don't worry, because I don't know too. Thank you. If you want, I can paste all the code I've done so far.</p>