title: assign swf as image source in flex at runtime
body: <p>In Flex, how to assign swf as image source <strong>at runtime, not embedding it</strong>.</p>
  
  <pre><code>[Bindable] public var myImg:String;
  
  &lt;mx:Image id="intImg" source="{myImg}" width="96%" height="96%" /&gt;
  </code></pre>
  
  <p>In my application, I fetch image url dynamically from a web service call, and assign it to "myImg". </p>
  
  <p>But until I don't get the response from the web service call, I want to show a loader swf in image control above. I assigned something like:</p>
  
  <pre><code>myImg = "assets/AS3.swf";
  </code></pre>
  
  <p>and the path of swf is correct, but it doesn't show up.</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong></p>
  
  <p><strong>The code I've shown above works perfectly in a Flex 3 app but the swf does not show up in a Flex 4 app. Is it because Image control has dropped the support for swf in Flex 4 ?</strong></p>
  
  <p>Please help me out.</p>
  
  <p>thanks</p>