9 Replies Latest reply on Nov 27, 2012 6:52 PM by jesus132233

    error 1119 VideoEvent - flash cs5.5

    Lesto Level 1

      I receive error 1119 when i try to add a listener ( all video events)

       

      the code:

       

      import fl.video.*;

      display.autoPlay = false;

      display.source = "video/olivia_intro.f4v";

       

      function readyHandler(event:VideoEvent):void

      {

         // Pause until the video can play till the end

         display.pause();

         display.playWhenEnoughDownloaded();

      }

       

      display.addEventListener(VideoEvent.READY, readyHandler);

      stop();

       

      The video work if

       

      display.addEventListener(VideoEvent.READY, readyHandler);

       

      is commented and display.play(); is added.

       

      display is an instance of FLVplayback or FLVplayback 2.5

       

      any help?