title: importing mx.graphics.codec.*
body: <p>I am trying to import a FlashDevelop project into Flash Builder. I simply started an ActionScript project and dragged and dropped files &amp; created packages as needed, selected "Set as Default Application" on the main file .as file and deleted the default application .as file.</p>
  
  <p>But when I compile I get the following errors </p>
  
  <pre><code>1172: Definition mx.graphics.codec:JPEGEncoder could not be found.
          line 15 Flex Problem
  1172: Definition mx.graphics.codec:PNGEncoder could not be found.   
                  line 16 Flex Problem
  1180: Call to a possibly undefined method JPGEncoder.
                  line 175 Flex Problem
  </code></pre>
  
  <p>In my build path I have Flex 4.5.1 and for framework linkage I am doing "Merged into code". I see in <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/graphics/codec/package-detail.html" rel="nofollow">help for adobe</a> that the classes are part of the core for Flex 4.5.1.</p>
  
  <p>So not sure what I am doing wrong? I only want to compile a swf and I am pretty sure FlashDevelop was doing the same before.</p>