Jump to content
Search Community

martinella

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by martinella

  1. Hi MMaculatell,

    i have a found a solution!!!!!

     

    First you have to set a var for the number of the loop.

    Then with the VIDEO_COMPLETE you can control the function.

     

    Here an example:

     

    var loop_counter:Number = 0;

    myvideo.addEventListener(VideoLoader.VIDEO_COMPLETE, stopVideo);

     

    function stopVideo(event:Event)

    {

     

    loop_counter++;

     

    if (loop_counter == 2){

     

    trace("here i'm");

     

    }

    }

     

     

    If you have any questions let me know!!!

    Thanks

  2. Hi all,

     

    I'm loading a video that has to be repeated only 2 times.

    What I need is a function that tell me when the video repeat is over.

     

    This is the code:

     

    var video:VideoLoader = new VideoLoader("video.f4v", {name:"myVideo", width:500, height:500, container:videoContainer, scaleMode:"none", autoPlay:false, bufferTime:2, repeat:1, volume:0, estimatedBytes:12255778, bufferMode:true, onComplete:completeHandler});

     

     

    Somebody can help me? :D

    Thanks

×
×
  • Create New...