1 Reply Latest reply on Dec 2, 2008 8:39 PM by wizzpig666

    Security Sandbox Violation when trying to open new window

    wizzpig666
      Hi guys

      I have a flash button that I would like to open a new window of a specific size when clicked. I found some code on a thread at flashkit and tried that out, but when testing in flash I get the following message:

      *** Security Sandbox Violation ***
      Connection to javascriptopenNewWindow(' http://www.designlogic.com.ph/assets/Web_pages/tropicanacomp.gif','height=500,width=500,to p=10,left=100,toolba r=no,scrollbars=yes') halted - not permitted from file:///C|/Users/James/Graphics/Websites/Design%20Logic/Raw%5FImages/Flash/flashbuttons/G allery%20icons/webPagesIcons/Tropicana1.swf

      ------------------------------------------------

      Here is the code I inserted into the actionscript:

      on (release) {
      getURL("javascriptopenNewWindow(' http://www.designlogic.com.ph/assets/Web_pages/tropicanacomp.gif','height=500,width=500,to p=10,left=100,toolba r=no,scrollbars=yes') ");
      }

      I also tried steamrolling ahead and testing it from dreamweaver after inserting the flash onto my page, but it doesn't fucntion. No surprises there.

      Would really appreciate it if someone could help me out with this.