SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE FLASH:
Home
Flash Forum
Flash Tutorials
Flash Video Tutorials
Web Streaming Forum
Adobe Flash
Podcast
Re: Looping Multiple FLV files in Flash CS3
Cow Forums
:
Adobe Flash
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
Re: Looping Multiple FLV files in Flash CS3
by
Jamie Kehoe
on Apr 23, 2009 at 6:19:47 pm
Ok guys, a challenge for you. I have exactly the same thing, except I need to have 3 separate videos playing in a header section and constantly looping. This is the code based on your example.
import fl.video.*;
// Video component instance name
// You need to change the instance name of your video components
// It uses the same source for each instance
var flvControl1 = vid1;
var flvControl2 = vid2;
var flvControl3 = vid3;
var flvSource = ["Statue.flv","Bush.flv","Clouds.flv"];
var loopAtEnd = true;
// Loop the video when it completes
function completeHandler(event:VideoEvent):void
{
flvControl1.seek(0);
flvControl1.play()
flvControl2.seek(0);
flvControl2.play()
flvControl3.seek(0);
flvControl3.play()
}
flvControl1.addEventListener(VideoEvent.COMPLETE, completeHandler);
flvControl2.addEventListener(VideoEvent.COMPLETE, completeHandler);
flvControl3.addEventListener(VideoEvent.COMPLETE, completeHandler);
// Set video
flvControl1.source = "Statue.flv";
flvControl2.source = "Bush.flv";
flvControl3.source = "Clouds.flv";
Problem is that each video finishes when the shortest video finishes and they all loop at the same time. How do I avoid this so each loops at the end of its own time?
G5 Dual 2.3GHZ
2.5GB DDR SDRAM 400MHZ
Mac OS 10.5.1
2 x 20" Apple Cinema Display
128MB ATI Graphics
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Looping Multiple FLV files in Flash CS3
by Jim Zons on Jul 8, 2008 at 2:12:27 am
Re: Looping Multiple FLV files in Flash CS3
by Pieter Helsen on Jul 8, 2008 at 7:30:49 am
Re: Looping Multiple FLV files in Flash CS3
by Jim Zons on Jul 8, 2008 at 11:44:17 am
Re: Looping Multiple FLV files in Flash CS3
by Pieter Helsen on Jul 8, 2008 at 12:35:48 pm
Re: Looping Multiple FLV files in Flash CS3
by Jamie Kehoe on Apr 23, 2009 at 6:19:47 pm
Re: Looping Multiple FLV files in Flash CS3
by demetri tashie on May 28, 2009 at 2:26:59 pm
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]