When the close button in the popup is pressed it wont call the function from the main menu.
Can someone tell me why this function aint been called from the main menu?
Popup menu
// calls Var
this.window_mc.jpgwindow_mc.loadMovie(_level0.jpgVar + “.jpg”);
// calls this function from the main movie
window_mc.close_btn.onRelease = function() {
_level0.popUpClose(window_mc);
trace(_level0.jpgVar);
}
main menu
// functions to close pop-up
function popUpClose(window) {
unloadMovieNum(2);
for (var item in buttons) {
eval(buttons[item]).enabled = true;
}
}
//Button Code
button1.onRelease = function() {
_level0.jpgVar = 3;
popUpOpen(“landpopUp.swf”);
};
Now the trace is a test that pulls up the number from the main menu to test that its reading
from the main menu. This works fine and returns the varable so its finding the number from the
_level0. Its just not calling the popupclose function. Whyyyyyyyy.
This is tearing my hair out!!