Loop flv in Animate
Hello everybody,
I've a question about how is possible put in loop a flv in Animate?
I tryed like that:
- Import a movie *.mov into library
- add in a level that code As3
import fl.video.VideoEvent;
myVideo.addEventListener(
VideoEvent.COMPLETE, completePlay);
function completePlay(e:VideoEvent):void {
myVideo.play();
}
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();
}
- named a movie in propriety: myVideo
but don't work!
Thanks in advance for your help!!!
Cheers
Giulio