flash pop up
Out of context: Reply #1
- Started
- Last post
- 8 Responses
- ********0
first define the followgin function in your actions layer:
Movieclip.prototype.openWinCentr... = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2... + w/2 + "))+'" + "')}else{myWin.focus();};void(0...
}Add the following to the button that will trigger the pop up
on (release) {
address = "url here";
target_winName = "name for the new window";
width = whatever u want in pixels;
height = same here;
//0 = NO, 1 = YES
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}