# FLVPlayback - can't close it. PLEASE help me

**URL:** <https://forum.kirupa.com/t/flvplayback-cant-close-it-please-help-me/198590>\
**Category:** flash\
**Created:** [August 26, 2006, 1:22pm UTC](https://forum.kirupa.com/t/flvplayback-cant-close-it-please-help-me/198590 "2006-08-26T13:22:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shrike](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Shrike](https://forum.kirupa.com/u/Shrike)\
**Post date:** [August 26, 2006, 1:22pm UTC](https://forum.kirupa.com/t/flvplayback-cant-close-it-please-help-me/198590/1 "2006-08-26T13:22:52Z")

</div>

I have FLVPlayback component (video\_load) on the stage and I have two buttons.  
I want to load external .flv file (stream it) and I want to have oportunity to close it if I get bored with it (stop streaming in the same moment).

First button loads .flv file into this FLVPlayback component like this:

import mx.video.FLVPlayback;  
var video\_load:FLVPlayback;  
video\_load.contentPath = “Filmy/Filmik.flv”;  
video\_load.play();

and I want the second button to close the above…

and here is my problem. Commands like “video\_load.closeVideoPlayer()” don’t work cause I need index number but when I set that with “FLVPlayback.activeVideoPlayerIndex” it still doesn’t work. I tried everything. For example instead of closing it, to load a null .flv file but then my FLVPlayback stops loading external files completely (bug? the code was good for sure). I also tried to use unloadMovie but then FLVPlayback dissapear copletely and I can’t load anything any more…

I beg you people… help me
