Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Re: Looping Multiple FLV files in Flash CS3

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Re: Looping Multiple FLV files in Flash CS3
by Jim Zons on Jul 8, 2008 at 11:44:17 am

Pieter ... wow ... really close. I was still getting an error for an undefined element, so I looked closely at the scripting, and hacked this solution:


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 = flames1;
var flvControl2 = flames2;
var flvControl3 = flames3;
var flvSource = "flames.flv";

// 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 = flvSource;
flvControl2.source = flvSource;
flvControl3.source = flvSource;


I needed to create three separate flvControl.seek/play commands and that did the trick! I've posted the fixed animation to the same location:

http://7stream.net/fireside/home.html

Thanks again!



Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Current Message Thread:


Related Tags:
Flash   |   Flash CS3



Note: If you are a registered user and you do not see your name and email in the two respective fields above, you may reset your account cookies by clicking here. Your post will not be accepted if the name and email provided above are not currently registered in our database.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  


Message                Add Bold Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Italic Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Underline Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Image Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd URL Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this button

Note: The following characters are HTML command 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. For more on how to post, click here.


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]