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

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


Looping Multiple FLV files in Flash CS3
by Jim Zons on Jul 8, 2008 at 2:12:27 am

Okay ... here's maybe an easy one for someone who knows what they are doing! I am not well-versed in Action Script 3 ... I'm just a hacker. I have created a Flash project where I have three instances of a very small FLV movie that I want to loop endlessly when launched in a user's browser. Using this bit of Action Script:

import fl.video.*;

// Video component instance name
var flvControl = flames1;
var flvSource = "flames.flv";

// Loop the video when it completes
function completeHandler(event:VideoEvent):void
{
flvControl.seek(0);
flvControl.play()
}
flvControl.addEventListener(VideoEvent.COMPLETE, completeHandler);

// Set video
flvControl.source = flvSource;



I can make one instance of the video repeat, but not the other two. Right now, I have the three instances of the video on a single layer, but even if I move it to other layers so that they are all on separate layers, I then get Action Script errors and none of the videos loop. I even tried having it call up three SEPARATE videos (which seems unnecessarily wasteful when it is the exact same video) I get more Action Script errors:

1151: A conflict exists with definition flvControl in namespace internal

1021: Duplicate function definition

Any ideas how I can get all three videos to loop? Here is a link to what I am actually trying to accomplish:

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

Note that the middle fireplace flames loop, but the one on the left and the one on the right do not .... I would like these to loop like the center fireplace. Any and all suggestions are welcome!


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]