# Opening a .SWF file

**URL:** https://forum.kirupa.com/t/opening-a-swf-file/171630
**Category:** flash
**Created:** [December 6, 2005, 11:14pm UTC](https://forum.kirupa.com/t/opening-a-swf-file/171630 "2005-12-06T23:14:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![briand5](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@briand5](https://forum.kirupa.com/u/briand5)
#### Post date: [December 6, 2005, 11:14pm UTC](https://forum.kirupa.com/t/opening-a-swf-file/171630/1 "2005-12-06T23:14:34Z")

</div>

I currently have this code set to open a .swf within a movie clip

[indent]on (release) {  
viewer\_WD.loadMovie(“Sub\_Sandwich.swf”, \_blank);  
}

[/indent] Is there a code to open a .swf file that is in the root directory by clicking a button in a new window?

Thanks for any help,  
Brian
