title: IE not letting flash stream audio
body: <p>This problem is happening is both IE8 and IE7. I have a small swf  compiled with flex. It's basically just a wrapper around audio streaming functionality. All the controls and such are in html with javascript. I load the swf using swfobject's "static" method. This works great in Firefox and Chrome. In IE, the swf loads correctly, but as soon as I try to stream any audio with it, I get an error. </p>
  
  <p><em>EDIT:</em> I've reduced the code quite a bit to try and find the problem. You can see the new version running <a href="http://defrex.com/IE_streaming_test/flash_isolation_test.html" rel="nofollow noreferrer">here</a>. Here is the error, html and flex files for my reduced version: </p>
  
  <pre><code>TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at isolated/playStream()[/home/defrex/code/bd/trunk/ackbar/media/flex/isolated.mxml:19]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at flash.external::ExternalInterface$/_callIn()
      at &lt;anonymous&gt;()
  </code></pre>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;fuie&lt;/title&gt;
          &lt;script type="text/javascript" src="swfobject.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              var player;
              swfobject.registerObject("_mediaplayer", "9.0.0", undefined, function(e){
                  if (e.success)
                      player = e.ref;
                  else
                      console.log('Flash not loaded');
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;a href="#" onclick="player.play_fuie('celebration.mp3');return false;"&gt;play track&lt;/a&gt;
          &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1" height="1" id="_mediaplayer"&gt;
              &lt;param name="movie" value="isolated.swf" /&gt;
              &lt;!--[if !IE]&gt;--&gt;
              &lt;object type="application/x-shockwave-flash" data="isolated.swf" width="1" height="1"&gt;
              &lt;/object&gt;
              &lt;!--&lt;![endif]--&gt;
          &lt;/object&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the flex:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"&gt;
      &lt;mx:Script&gt;
          import flash.external.ExternalInterface;
          import flash.media.Sound;
          import flash.media.SoundChannel;
          import flash.net.URLRequest;
  
          public function init():void {
              ExternalInterface.addCallback("play_fuie", playStream);
              ExternalInterface.call("console.log('flash loaded')");
          }
  
          public function playStream(stream:String):void {
              var url:URLRequest = new URLRequest(stream);
              var audio:Sound = new Sound();
              audio.load(url);
              var chan:SoundChannel = audio.play();
              chan.soundTransform.volume = 0.5;
          }
      &lt;/mx:Script&gt;
  &lt;/mx:Application&gt;
  </code></pre>