7 Replies Latest reply on Nov 15, 2013 8:33 AM by kglad

    How to load a external mp4 video

    mandar vedak

      Hi,

       

      How to load a external mp4 video in as2?

       

      this code is perfect but i want mp4 video in it.

       

      please help me!!!

       

      import mx.video.*;

      my_video.contentPath = "clips/maharashtra.mp4";

      my_video.seek(4.7);

      my_video.play();

       

      var listenerObject:Object = new Object();

      listenerObject.complete = function(eventObject:Object):Void

      {

           movieComplete();

      };

      my_video.addEventListener("complete", listenerObject);

      //

      movieComplete = function() {

           gotoAndPlay(1);

      };

       

      stop();