title: Migrate from AS3 to AIR, flvPlayback VideoEvent Error
body: <p>Is the first time I post here, here's my question: (sorry for my english)<br>
  I have a desktop application programmed in Flash AS3, (not AIR) and wanted to migrate to AIR because I saw that you can have control over the files and other stuff that I need. The problem is that is ALL programmed on the TimeLine (I have never programmed with classes and really scared me a bit), so I have about 2200 lines of code in the main script all in one frame.<br>
  When I pass the proyect to AIR and I try to run it, I get a lot of errors. I searched on the internet but I find no answers. I don't konw what I'm doing wrong ... and why if I run my application with a SWF file it's works, but I got these errors when I compile for AIR.<br>
  Here, the code:</p>
  
  <pre><code>var myVideo:FLVPlayback;
  function CreateFLVPlayback():void {
      myVideo = new FLVPlayback(); //FLVPlayback.
      //Configuration and Listeners:
      myVideo.addEventListener(VideoEvent.COMPLETE, RepeatFLVPlayback); //1st ERROR
      myVideo.addEventListener(VideoEvent.READY, ReadyFLVPlayback); //2nd ERROR
      myVideo.addEventListener(VideoEvent.STATE_CHANGE, StateChangeFLVPlayback ); //3rd
  }
  // [ ... more code ...]
  function StateChangeFLVPlayback(e:VideoEvent ):void {
      var videoPlayer:FLVPlayback = e.target as FLVPlayback;
      if (e.state == VideoState.CONNECTION_ERROR) {   ///Line of the 4th ERROR
          trace("No se encontró el video: "+myVideo.source );
      }
  }
  </code></pre>
  
  <ul>
  <li>Escena 1, Capa 'Acciones', Fotograma 3, Línea 838    1119: Acceso a una propiedad COMPLETE posiblemente no definida mediante una referencia con tipo estático Class.  </li>
  <li>Escena 1, Capa 'Acciones', Fotograma 3, Línea 839    1119: Acceso a una propiedad READY posiblemente no definida mediante una referencia con tipo estático Class.  </li>
  <li>Escena 1, Capa 'Acciones', Fotograma 3, Línea 840    1119: Acceso a una propiedad STATE_CHANGE posiblemente no definida mediante una referencia con tipo estático Class.</li>
  <li>Escena 1, Capa 'Acciones', Fotograma 3, Línea 870 - 1119: Acceso a una propiedad state posiblemente no definida mediante una referencia con tipo estático flash.events:VideoEvent.</li>
  </ul>
  
  <p>Here the same Errors in english (using Google Translator):</p>
  
  <ul>
  <li>Scene 1, Layer 'Actions', Frame 3, Line 838 1119: Access to a possibly undefined property COMPLETE through a reference with static type Class.  </li>
  <li>Scene 1, Layer 'Actions', Frame 3, Line 839 1119: Access to undefined property READY possibly through a reference with static type Class.  </li>
  <li>Scene 1, Layer 'Actions', Frame 3, Line 840 1119: Access to undefined property state_change possibly through a reference with static type Class.  </li>
  <li>Scene 1, Layer 'Actions', Frame 3, Line 870-1119: Access to a possibly undefined state property through a reference with static type flash.events: VideoEvent.  </li>
  </ul>