I’m building a site in Flash in which I have a home page that I want to stay on the screen that has buttons that pop up centered, fixed-dimension windows to other sections of the site. I used the Kirupa Flash MX tutorial “Launch a Centered Pop-Up Window”, and it works, but I’m having one issue that I’ve had no luck resolving:
The buttons do make a centered page pop up, and they look great, but when I click back on the home page and try to launch a different section, it won’t work. It will if I close the other section first, but if I don’t do that, it’s like there’s a block placed on that window or something. I think it’s confusing to a user who wouldn’t know to close that window before clicking back on the home page. I’m looking for a command that I can put in the centered pop-up code that either replaces the last pop-up with the new one that is clicked on the home page, or launches a new window so multiple windows would be open.
Here’s the action from the tutorial:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “ANDY_SRYGLEY_print_index.html”;
target_winName = “print”;
width = 801;
height = 601;
toolbar = 1;
location = 0;
directories = 0;
status = 1;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Any help would be greatly appreciated.
Thanks
Oh, by the way, the site that I’m working on is www.andysrygley.com if you want to see what I’m talking about. Just try opening a section from the compass, then clicking back on the home page and launching another section on the compass.