# How to unload an AS2 .swf loaded from an AS3 .swf

**URL:** <https://forum.kirupa.com/t/how-to-unload-an-as2-swf-loaded-from-an-as3-swf/257902>\
**Category:** flash\
**Created:** [April 18, 2008, 4:46am UTC](https://forum.kirupa.com/t/how-to-unload-an-as2-swf-loaded-from-an-as3-swf/257902 "2008-04-18T04:46:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiashy](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiashy](https://forum.kirupa.com/u/Kiashy)\
**Post date:** [April 18, 2008, 4:46am UTC](https://forum.kirupa.com/t/how-to-unload-an-as2-swf-loaded-from-an-as3-swf/257902/1 "2008-04-18T04:46:10Z")

</div>

Hi!  
I’m new with ActionScript and i’m having a problem:

I have a Flex/AS3 application that loads an AS2 swf using an SWFLoader component (or a Loader, i tried both). The AS2 swf starts ok but the problem appears when i trie to close it. I don’t know how to unload the swf. I tried exiting it from inside calling fscommand(“quit”); but it doesn’t work. I tried to get the AVM1Movie content from the AS3 application to call the unload method but it crashes. What can i do? I just need to unload the As2 swf when i click a button :{

Can anyone help me? Do you had this problem in the past?

Thanks a lot in advance!!!
