0 Replies Latest reply on Oct 25, 2009 6:20 PM by xslamx

    Need help with getting rid of location bar on pop up window

    xslamx Level 1

      I'm working on an online graphic design portfolio and one of the pages features online animated Flash banners.  The site can be viewed here...




      I created a pop up window that displays a swf of the banner by putting this code on the View Banner link of each example of work...


      on (release) {

      var jscommand:String = "window.open('http://www.truetilldeathhq.com/Skiz/banners/336x280DuvalCX9.html','win','height=296,width= 352,left=112,top=330,toolbar=no,resizable=no,location=no,scrollbars=no');"; getURL("javascript:" + jscommand + " void(0);");




      Two problems though.  First is in Firefox the location bar with the url to the swf is visible, even though I set location=no as a variable in the code (it works ok in Safari).  The window is also resizable in Firefox and Safari even though the variable is set to resizable=no.  How can I fix this?


      Second problem, even though I painstakingly set the left and top variables by trial and error to get the pop up window to open exactly in the center of the "stage" area of the site, when I post it and view it in a browser, the window pops up lower.  When I'm in the fla of the site and I preview it in a browser, it's fine, but for some reason when I post the files online and then open it from http://truetilldeathhq.com/Skiz/main8_v7.html, the pop ups come in lower.  Any fixes or advice on this?


      Thanks for your help!