Hi,
You should be able to simply say:
unloadMovie(infoBox);
Regards,
Patrick
[quoted text, click to view] king2d wrote:
> Hi,
>
> Hope someone can answer my question. Here is a description of the project and
> the roadblock I'm stumbling on:
>
> It's a map (movieclip defined as mapBox with the buildings as buttons). When
> you click one of the buttons it loads a .swf file into a different movieclip
> defined as mapInfo. There is also a button in mapBox that loads a different map
> .swf into level1 of this same movieclip in addition to loading the info .swf
> file into mapInfo.
>
> Here is where I'm running into a problem:
>
> I also have a button to unload the new map from level1. That works. But I also
> want to unload the info .swf from infoBox. I'm not sure how to code that
> because it was originally loaded using loadMovie instead of loadMovieNum which
> doesn't call for a level to load it into. Is this possible to do? I've tried a
> few different ways of syntax but they don't work.
>
> Here is the code in the first frame of the main file:
>
> Thanks!
>
> mapBox.loadJackson.onRelease = function() {
> loadMovie("bldg1-info.swf", infoBox);
> };
> mapBox.loadCasa.onRelease = function() {
> loadMovie("bldg2-info.swf", infoBox);
> };
> mapBox.loadNewMap.onRelease = function() {
> loadMovie("newmap-info.swf", infoBox);
> };
Hi,
Hope someone can answer my question. Here is a description of the project and
the roadblock I'm stumbling on:
It's a map (movieclip defined as mapBox with the buildings as buttons). When
you click one of the buttons it loads a .swf file into a different movieclip
defined as mapInfo. There is also a button in mapBox that loads a different map
..swf into level1 of this same movieclip in addition to loading the info .swf
file into mapInfo.
Here is where I'm running into a problem:
I also have a button to unload the new map from level1. That works. But I also
want to unload the info .swf from infoBox. I'm not sure how to code that
because it was originally loaded using loadMovie instead of loadMovieNum which
doesn't call for a level to load it into. Is this possible to do? I've tried a
few different ways of syntax but they don't work.
Here is the code in the first frame of the main file:
Thanks!
mapBox.loadJackson.onRelease = function() {
loadMovie("bldg1-info.swf", infoBox);
};
mapBox.loadCasa.onRelease = function() {
loadMovie("bldg2-info.swf", infoBox);
};
mapBox.loadNewMap.onRelease = function() {
loadMovie("newmap-info.swf", infoBox);
};