# Easier than I think i know - SWF External Loading

**URL:** <https://forum.kirupa.com/t/easier-than-i-think-i-know-swf-external-loading/282823>\
**Category:** flash\
**Created:** [February 26, 2009, 8:00pm UTC](https://forum.kirupa.com/t/easier-than-i-think-i-know-swf-external-loading/282823 "2009-02-26T20:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raven3k](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@raven3k](https://forum.kirupa.com/u/raven3k)\
**Post date:** [February 26, 2009, 8:00pm UTC](https://forum.kirupa.com/t/easier-than-i-think-i-know-swf-external-loading/282823/1 "2009-02-26T20:00:00Z")

</div>

ok here’s my code

```auto

myButton.addEventListener(MouseEvent.CLICK, loadmovie);
function loadmovie(evt:MouseEvent):void {
myButton.visible = false;
this.load(new URLRequest("wall_example6.swf") );
}

```

What i want to do is in this sequence:  
Click button \> Load Movie and Close the Movie which had the button

I know i am close, but i have been searching and searching and i guess this is my last hope before i delete it all and give up!!
