5 Replies Latest reply on Jun 29, 2007 6:30 AM by Greg Dove

    FLV gets automatically resized

    chicksel
      I have the following script that works perfectly to play random and in a loop but everytime it loops the size of the video is resized but i cant see where its being done...Anyone who does see it?

      my_FLVPlybk.muteButton = mute;

      var movies:Array = ["filmpje1.flv","test.flv","filmpje3.flv"];
      var tempMovies:Array = movies.concat();
      var lastMovie:String = "";

      function getMovie():String
      {
      if(tempMovies.length==0){
      tempMovies = movies.concat();
      trace("--------LEEG-----------");
      }
      var movie:String = tempMovies.splice(Math.floor(Math.random()* tempMovies.length),1).toString();
      if(lastMovie==movie){
      tempMovies.push(movie);
      return getMovie();
      } else {
      lastMovie=movie;
      }
      return movie;
      }


      var listenerObject:Object = new Object();
      listenerObject.complete = function(eventObject:Object) {
      my_FLVPlybk.play(getMovie());
      }

      my_FLVPlybk.addEventListener("complete", listenerObject);
      my_FLVPlybk.play(getMovie());