# Media Player Gallery

**URL:** <https://forum.kirupa.com/t/media-player-gallery/329484>\
**Category:** flash\
**Created:** [September 4, 2012, 8:44pm UTC](https://forum.kirupa.com/t/media-player-gallery/329484 "2012-09-04T20:44:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmion1](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kmion1](https://forum.kirupa.com/u/kmion1)\
**Post date:** [September 4, 2012, 8:44pm UTC](https://forum.kirupa.com/t/media-player-gallery/329484/1 "2012-09-04T20:44:30Z")

</div>

So Im trying to make a Video player with Gallery. I have everything set up where the xml playlist is loading great. When I switch tabs, The media gallery wont load, and when I switch back to the first tab nothing is there any more. Can you guys help me out a bit?

Thanks in advance from a new flash coder 😃

here is my code section for the gallery tabs  
pay no attention to the \<br\> tags. idk why they are popping up

[as]  
function removeGallery0():void  
{  
currentGallery = 0;  
addEventListenersForGalleryBtns();  
sidebarBox.removeChild(container\_mc);

```
}    

```

function removeGallery1():void  
{  
currentGallery = 1;  
addEventListenersForGalleryBtns();  
sidebarBox.removeChild(container\_mc);

}  
function removeGallery2():void  
{  
currentGallery = 2;  
addEventListenersForGalleryBtns();  
sidebarBox.removeChild(container\_mc);

}

[/as]
