title: Can't programmatically control FLVPlayback with ActionScript
body: <p>I'm trying to control the video playback of a live video stream using ActionScript 3 code in Flash Professional.</p>
  
  <p>There's a FLVPlayback component on my stage titled "flvPlayer", and in Frame one of my "Actions" layer, I have the following code:</p>
  
  <pre><code>import fl.video.FLVPlayback; 
  import flash.display.Sprite;
  var vidURL:String = new String("rtmp://www.mycompanyserver.com/test/live/livestream");
  var flvPlayer:FLVPlayback = new FLVPlayback(); 
  addChild(flvPlayer);  
  flvPlayer.source = vidURL;
  flvPlayer.isLive = true;
  flvPlayer.autoPlay = true;
  </code></pre>
  
  <p>However, the video doesn't play.</p>
  
  <p>This is what appears in the Output log:</p>
  
  <p><a href="http://i.stack.imgur.com/J5n7J.png" rel="nofollow">http://i.stack.imgur.com/J5n7J.png</a></p>
  
  <p>I can get it to work by adding the source to the Compenent Parameters window, but I need to be able to access those parameters in code.</p>
  
  <p>Thanks in advance.</p>