title: OSMF AS3/FlashCS5 Error: Type was not found [...]: StageVideoEvent
body: <p>I am playing around with OSMF and have a problem running even a super simple example.</p>
  
  <p>I am running Flash CS5 on Win7 in VirtualBox on Arch Linux (just saying because I thought that this may have something to do with the underlying stuff). Also I am using OSMF 1.6 Sprint 1. </p>
  
  <p>Anyways I am trying to run this simple example:</p>
  
  <pre><code>package
  {
      import flash.display.Sprite;
  
      import org.osmf.containers.MediaContainer;
      import org.osmf.elements.VideoElement;
      import org.osmf.media.DefaultMediaFactory;
      import org.osmf.media.MediaElement;
      import org.osmf.media.MediaPlayer;
      import org.osmf.media.URLResource;
  
      public class OPlayer extends Sprite {
          public function OPlayer() {
              var filePath:String = "testvid.flv";        
              var resource:URLResource = new URLResource(filePath);       
              var mediaFactory:DefaultMediaFactory = new DefaultMediaFactory();
              var mediaElement:MediaElement = mediaFactory.createMediaElement(resource);
              var mediaPlayer:MediaPlayer = new MediaPlayer(mediaElement);
              var mediaContainer:MediaContainer = new MediaContainer();
              mediaContainer.addMediaElement(mediaElement);
              addChild(mediaContainer);
          }
      }
  </code></pre>
  
  <p>}</p>
  
  <p>And unfortunately I keep getting the following compile error:</p>
  
  <pre><code>1046: Type was not found or was not a compile-time constant: StageVideoEvent.
  </code></pre>