title: AS3 - FLVPlayback component completion handler
body: <p>I have an FLVPlayback component, instance named flvPlayer. The code below is in frame 1 of intro scene, which <strong>works perfectly fine in Flash CS5</strong> but not in CS6!
  Obviously I want the video player to jump to the next scene when the video reaches the end.</p>
  
  <pre><code>import fl.video.*;
  
  flvPlayer.source = "videos/1.flv";
  
  flvPlayer.addEventListener(VideoEvent.COMPLETE, completeHandler);
  
  function completeHandler(event:VideoEvent):void
  {
      MovieClip(this.root).gotoAndPlay(1, "mainScene");
  }
  </code></pre>
  
  <p>in CS6, it gives me this compile error:</p>
  
  <p><img src="https://i.stack.imgur.com/nvkI3.png" alt="enter image description here"></p>