Hello,
I am new to flash and am running flash CS5.5 and I would like to know how I could get a basic video clip to loop in the background. Any help would be greatly appreciated. Thanks
HI, I'm trying the same thing... imported an FLV into a movie clip and placed the movie clip in a bottom layer of the main scene.
I had imported it before as "load as external video with playback component" which played fine, but it didn't loop.
Now I'm trying the "Embed FLV and play in timeline" method into the movie clip and I stuck the movie in a layer in the main timeline.
The problem is that it's not playing at all now. I've added the 700 frames to the length of the video in the main timeline, and that's not helping. I've tried adding a gotoAndPlay(1); on the last frame. Not helping.
Any thoughts?
Number of ways to do this.
If you embed the video directly into the main timeline.... there is no need to do anything. The default for Flash is to play the last frame and then loop to the first frame.
Another choice is to use NetStream to play the video.... much more powerful and versatile than the FLVPlayback component.
Then to loop, it's simple:
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
trace("Video complete")
ns.seek(0);
ns.play();
}
}
Good NetStream video tutorial here:
Very bottom of page.
Best wishes,
Adninjastrator
North America
Europe, Middle East and Africa
Asia Pacific