title: Flex: Modify an embedded icon and use it in a button?
body: <p>Just that, if you embed an icon:</p>
  
  <pre><code>[Embed(source='icons/checkmark.png')]
  private static var CheckMark:Class;
  </code></pre>
  
  <p>You end up with a dynamic class. You can pretty easily assign the icon to a button at runtime by calling the setStyle method:</p>
  
  <pre><code>var btn:Button = new Button();
  btn.setStyle("icon", CheckMark);
  </code></pre>
  
  <p>But what if you wanted to alter the icon at runtime, like changing it's alpha value or even redrawing pixels, before assigning it to the button?</p>
  
  <p>So far I can't find a satisfactory answer...</p>