# Problems with videos on the website

**URL:** <https://forum.kirupa.com/t/problems-with-videos-on-the-website/285450>\
**Category:** flash\
**Created:** [March 31, 2009, 11:42pm UTC](https://forum.kirupa.com/t/problems-with-videos-on-the-website/285450 "2009-03-31T23:42:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deathz](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@deathz](https://forum.kirupa.com/u/deathz)\
**Post date:** [March 31, 2009, 11:42pm UTC](https://forum.kirupa.com/t/problems-with-videos-on-the-website/285450/1 "2009-03-31T23:42:17Z")

</div>

Hi guys,

I’m having a problem trying to build a Video Portfolio for a client.  
Basically I have a portfolio.swf which has the main stage with a load\_videos MovieClip inside and a list of videos to select.

When the user selects a video, it automatically loads into the load\_videos MC with the following command:

var p = new Loader();  
p.load(new URLRequest("./videos/video\_1.swf"));  
load\_videos.addChild§

Note: I created a SWF with a video player for each FLV video file.

And then I created a test button on portfolio.swf just to unload the video with the following command:

## while (load\_videos.numChildren \> 0) { load\_videos.removeChildAt(0); }

And it sort of works, the video\_1.swf gets unloaded but the video keeps playing on background (I can’t see it, but can still hear it).  
Anyone know how to fix this? Am I doing everything wrong and that isn’t the way I suppose to load videos?

Please, any thought on this is appreciated.

Regards,

Guilherme
