# Multiple FLV playback component, playing all at once

**URL:** <https://forum.kirupa.com/t/multiple-flv-playback-component-playing-all-at-once/267301>\
**Category:** Uncategorized\
**Created:** [July 30, 2008, 3:35pm UTC](https://forum.kirupa.com/t/multiple-flv-playback-component-playing-all-at-once/267301 "2008-07-30T15:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![illuminationbas](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@illuminationbas](https://forum.kirupa.com/u/illuminationbas)\
**Post date:** [July 30, 2008, 3:35pm UTC](https://forum.kirupa.com/t/multiple-flv-playback-component-playing-all-at-once/267301/1 "2008-07-30T15:35:45Z")

</div>

Hello there!

I have to repair one project that is using the TV template from FlashVillage.  
[http://www.flashvillage.com/templates/Television/index.html](http://www.flashvillage.com/templates/Television/index.html)

The problem is that these “channels” on TV are FLV Playback components that have been placed into separate swf files (0,1,2,3,4.swf…)

They are called here :

> [@"Calling external swf - code"](#):
>
> function contentChange() {  
> if (contentReady == 1) {  
> for (i=0; i\<=\_root.nMenus; i++) {  
> if (i == cMenu) {  
> \_root.StoredActions.Con[“movie” +i].\_x = 0;
> 
> ```
> } else {
> _root.StoredActions.Con["movie" +i]._x = 3000;                         
>             
> }       
> }
> contentReady = 0;
> }
> 
> ```
> 
> }

The problem is that all of the swf files are loaded and playing all at once so when I switch to another “channel” the player is already in the middle of the movie or so… Also the sounds are mixing together, creating one hell of a mess 🙂

Here is also a code that loads swf into an empty movie clip :

> [@"load swf files..."](#):
>
> var movie:MovieClip = \_root.StoredActions.Con.createEmptyMovieClip(“movie”+n,n +1);  
> loadMovie(n+“.swf”,\_root.StoredActions.Con[“movie”+n]);  
> var MovieLoaded = 0;  
> percent = 0;  
> \_root.StoredActions.Con[“movie”+n].\_x = 3000;

So the point is that when the “user switches the channel” it switches the swf, and starts playing it from the beginning.

Please help!

Thank YOU!
