|
passing variables from swf to javascript popup
hi everyone.
i`m trying to send variables from this .swf on level2 of the main movie to another swf that loads onto a javascript popup. i`ve tried using the GET and POST methods with no success.
the popup script, first layer:
_root.btn.onRelease = function() {
address = "E01_p.swf";
target_winName = "test_pop";
width = 600;
height = 518;
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,scroll bars,resizable);
};
second layer:
_root.openWinCentre = 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="+loca tion+",directories="+directories+",status="+status +",menubar="+menubar+",scrollbars="+scrollbars+",r esizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};
thank you.
|