# Component list to load a .swf file

**URL:** <https://forum.kirupa.com/t/component-list-to-load-a-swf-file/207995>\
**Category:** Uncategorized\
**Created:** [November 23, 2006, 6:35pm UTC](https://forum.kirupa.com/t/component-list-to-load-a-swf-file/207995 "2006-11-23T18:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [November 23, 2006, 6:35pm UTC](https://forum.kirupa.com/t/component-list-to-load-a-swf-file/207995/1 "2006-11-23T18:35:59Z")

</div>

Hello All

I hope someone can help me as i am having a problem getting a list component to work. my website it is taking ages to load games.swf as it is 6meg. [http://www.theoaps.co.uk](http://www.theoaps.co.uk/)

I am using the loader component to play frames within a movie clip but this is becoming a problem as the file is growing with pictures and videos.

I dont know how to achieve this as i do not want the loader to say GameBF1942.swf as one of its options i just want it to say Battlefield 1942. and then to change the loader called Gameloader\_mc to GameBF1942.swf

Here is the code i am using.

```auto
 var myListener:Object = new Object();
Games_list.addEventListener("change",myListener);
myListener.change = function(){
    Games_mc.gotoAndPlay(Games_list.value);
}
Gameloader_mc.contentPath ="GameBF1942.swf";

```

I know how to get it to work if i had a button on its own but i dont know how to make it work from a list component, Here is the code im using for a button ([COLOR=RoyalBlue]this is taken from a previous version of our webpage[/COLOR]):pa:

```auto
on (release) {
    this._parent.ClanMember_mc.loadMovie("OAPSMembersInfomationDiscoToe.swf");
}

```

So how do i get the list component to load a diffrent .swf file without having the labels like “GameBF1942.swf” “GameBF2.swf” as i would like it to say “Battlefield 1942” “Battlefield 2”

Any feed back will be most greatful 🍺
