Close levels

hello, in my flash movie, i have a button load a swf onto level 1(which is a backround) and that loads another swf onto level 2(which is the content). i need the code for a button to beable to unload the movies on both laters with one button so the backround and content close together.

well you would need to use unload movie, and since you are loading to a level you need to target the level instead of a movie clip. That would go something likeā€¦

on (release){
_level1.unloadMovie();
_level2.unloadMovie();
}

thanks

No prob. Let me know if it works :slight_smile:

works great

:cool: Glad I could help you.