Skip to content

Instantly share code, notes, and snippets.

@baamenabar
Created June 8, 2013 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baamenabar/5736985 to your computer and use it in GitHub Desktop.
Save baamenabar/5736985 to your computer and use it in GitHub Desktop.
How to do a loop or looping video using the FLVplayback with AS3
import fl.video.VideoEvent;
fl_video.autoRewind = true; // fl_video being the name of the video component
fl_video.addEventListener(VideoEvent.AUTO_REWOUND, doLoop);
function doLoop(e:VideoEvent):void
{
e.target.play();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment