Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Closing loaded .sfw

Oct 27, 2008 4:50AM PDT

Hello, I?m currently working on a project where when the user clicks on a button, a new file is loaded and a video plays.
to load that i use...
on (release){
loadMovie("location1.swf", "_level5");
}
then on that file i have a close button with the code...
on(release){
fscommand("quit");
}
That works, but it closes the whole window, but I would like to close only that location1.swf

How do I modify that code in order to acomplish what i want?

thanks.

Discussion is locked