2 Replies Latest reply on May 31, 2009 2:18 PM by nshull

    Issues customizing browser pop-up windows in Flash...

    nshull Level 1

      Hi everyone!  I recently completed a tutorial on Adobe's web site on how to create pop-up browser windows through Flash using the getURL/navigateToURL with JavaScript method.  The tutorial works great, however, there are a few tweaks I'd like to make, and I'm sure not sure how to go about doing them....  The tutorial shows how to make a pop up without scrollbars or the toolbar, but I'd also like the location bar, menubar, and status bar to disappear as well.


      Here's the tutorial's original code for the button:

      on (release) {

          getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400,toolbar=no,scrollbars=yes') ");



      Here's my code for the button:

      on (release) {
          getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400,toolbar=no,location=no,menubar=n o,status=no,scrollbars=no') ");


      For whatever reason, the extra properties I set (location, menubar, status) don't work... they still show up despite setting their visibility to no.   I altered the code on the corresponding HTML page as well, but that doesn't fix the problem either... it's below if that helps.




      <SCRIPT LANGUAGE=JavaScript>
      function openNewWindow(URLtoOpen, windowName, windowFeatures) {
        newWindow=window.open(URLtoOpen, windowName, windowFeatures);


      <BODY bgcolor="#FFFFFF">
      <!-- URL's used in the movie-->
      <A HREF=javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400,toolbar=no,location=no,menubar=n o,status=no,scrollbars=no') ></A> <!-- text used in the movie-->
      <!--This button opens a new window method: getURL:"javascript" --><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      WIDTH=400 HEIGHT=250>
      <PARAM NAME=movie VALUE="getURL_javascript2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="getURL_javascript2.swf" quality=high bgcolor=#FFFFFF  WIDTH=400 HEIGHT=250 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>



      Does anyone happen to know what I'm doing wrong?  I'd also like to horizontally center the pop up window too if it's possible....  Any suggestions would be very helpful!


      Thank you,