title: Set the icon of a Flex button with a Sprite in runtime
body: <p>I want to set the icon of a button in flex.</p>
  
  <p>The default syntax is as follows.</p>
  
  <pre><code>myButton.setStyle("icon", iconClass);
  </code></pre>
  
  <p>and iconClass is normally an embedded object.</p>
  
  <p>But what I want to do is, use a standard <strong>Sprite or a MovieClip</strong> (which I find during runtime) as the icon.</p>
  
  <p>Is this possible? Has anyone done this?</p>
  
  <p>Thanks!</p>