Created
June 8, 2013 23:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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