How can I seamlessly loop video in flash cs3? And how can I put titles in flvplayback menu?
January 11, 2008 6:13 PM   Subscribe

How can I make a seamless FLV Video loop using flash cs3? Also! How can I put a title in the playback bar?

I'd like to be able to loop back video playback seamlessly on my website. I was able to get the video to loop but there seems to be a slight delay during the loop. Is there any way to fix this?

Here is a link to the example.

LOOP


Right now I am using the FLVplayback component with this actionscript.

import fl.video.VideoEvent;

player.addEventListener(VideoEvent.COMPLETE, playAgain);
function playAgain(evt:VideoEvent):void {

player.seek(0);
player.play();
}

I was also wondering if anyone knew how I could put a title in the menu bar. There will probably be a few videos so I am hoping for a way that is easily changed.

Thanks!
posted by austinlee to Computers & Internet (5 answers total)
 
What is "the menu bar"?
posted by grumblebee at 8:20 PM on January 11, 2008


Response by poster: The bar that appears under the video when you roll over it. The one that has the play and full screen option.
posted by austinlee at 9:50 PM on January 11, 2008


Okay, so you're using the flvPlayback component?

It doesn't contain a textfield, so you can't add a title to it. You'll have to add your own textfield to the stage and put the title in that.
posted by grumblebee at 8:17 AM on January 12, 2008


Have you tried player.seek(0.5) or something like that?

If that doesn't work, you're going to have to use a more complex solution. Maybe load two copies of the video, hide one, play the other. Then, when the first video is almost finished, swap them.
posted by grumblebee at 8:20 AM on January 12, 2008


Response by poster: thanks grumblebee. I'll try the two copies method! the seek one didn't work. thanks for the help!
posted by austinlee at 7:31 AM on January 13, 2008


« Older How can you check what a DVD's region code is set...   |   Looking for a good Mailman mailing list host Newer »
This thread is closed to new comments.