# Unload Swf and Open New swf

**URL:** <https://forum.kirupa.com/t/unload-swf-and-open-new-swf/276002>\
**Category:** flash\
**Created:** [November 21, 2008, 4:05am UTC](https://forum.kirupa.com/t/unload-swf-and-open-new-swf/276002 "2008-11-21T04:05:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvindmewara](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@arvindmewara](https://forum.kirupa.com/u/arvindmewara)\
**Post date:** [November 21, 2008, 4:05am UTC](https://forum.kirupa.com/t/unload-swf-and-open-new-swf/276002/1 "2008-11-21T04:05:49Z")

</div>

hi all,  
i am using adobe flash cs3.

i have a two swf file.

1. title.swf
2. main.swf  
i m using this flah standalone, not for any web application.  
in the title.swf have a one button,  
what i want in the click of that button it will unload current title.swf file and load main.swf file.

i tried this code

[COLOR=Red]\*\*on (release)  
{  
fscommand(“quit”);  
\_root.loadMovie(“C:/Flash/Main.swf”,2);

}\*\*[/COLOR]

it open main.swf file but remain old blue background which title.swf have.

help me
