I couldn't find a thread with my exact problem..basically I have this button in flash to popup a window:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "/RG_Map.pdf", "_blank";
target_winName = "R G Community Map";
width = 700;
height = 700;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
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);
}
It works fine in Firefox, Safari and Chrome, but I cannot open it in IE7. Has anyone found a solution? The window simply won't popup. This has occured on many machines, so I don't think it's a blocker.
Surprisingly (or stupidly) I don't have the code for openwincentre -it was a copy and paste from some button tutorial. I did a quick search on it and read that openwincentre must be on the _root first frame.
How would I input the _root code? (My popup windows are different sizes) or
Is the openwincentre necessary?
Well the fact that it worked the first time around in all but IE, really does suggest that its a popup blocker. I just tested the file on the tutorial site and it blocked it on my IE. Are you 100% sure its not a blocker?
__________________
jeremy - gnomeontherun Educated questions often get educated answers, and simple questions often get simple answers.
I'm certain it's not. I downloaded the tutorial files into my domain and it worked. I then copied the exact code from the tutorial and pasted it into my flash file and it didn't work. The only thing I can think of is that that button is not on the main layer, as the tutorial button is?
So, I tried your code and it still doesn't work.. I used the first part of the code for the button and the second part for the main frame. The only difference now is the newly coded button does not display a "Error on page." notice like the other buttons do.
Well thats progress. The button is working, something with the javascript is not. Honestly its not my strength, perhaps you should ask there. Either way, you can test Javascript directly by putting it into the address bar. I am also guessing its possible one of our parameters is off?
Code:
address = "/RG_Map.pdf";
If you don't care to have a function for this, then just try this.
Code:
on (release) {
getURL ("javascript:window.open('/RG_Map.pdf','RGCommunityMap','width=700,height=700');");
}