2 Replies Latest reply on Dec 14, 2006 12:46 AM by Newsgroup_User

    pop up....

    Ehud35new Level 1
      Hi there,
      I am trying to open Pop Up window in Flash.....
      I saw this script

      on (release) {
      getURL("javascript:NewWindow=window.open(' http://www.flashbax.com/popup1.html','myWindow','width=300,height=300,
      left=100,top=100,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No '); NewWindow.focus(); void(0);");
      }

      it doesnt work....

      if I want that the Pop up will open in flash with no connection to the web page....what do i need to write ?
        • 1. Re: pop up....
          shikozel Level 1
          in flash put this action script on your botton:

          on (release) {
          getURL("JavaScript:popup();");
          }

          in your html put this javascript function:

          <SCRIPT LANGUAGE="JavaScript">
          function popup() {
          window.open('myHTML.html','','toolbar=no,location=no,directories=no,status=no,menubar=no,s crollbars=no,resizable=no,width=100,height=100,left=100,top=0');
          }
          </script>


          look at his tutorial:
          http://www.flashkit.com/tutorials/Actionscripting/Opening_-Mohamed_-836/index.php
          • 2. Re: pop up....
            Level 7


            Ehud35new wrote:
            > Hi there,
            > I am trying to open Pop Up window in Flash.....
            > I saw this script
            >
            > on (release) {
            >
            > getURL("javascript:NewWindow=window.open(' http://www.flashbax.com/popup1.html','
            > myWindow','width=300,height=300,
            >
            > left=100,top=100,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,ful
            > lscreen=No'); NewWindow.focus(); void(0);");
            > }
            >
            > it doesnt work....
            >
            > if I want that the Pop up will open in flash with no connection to the web
            > page....what do i need to write ?


            You might have problem as javascript functions from flash often won't work locally.
            it has to be on server. Security features from both, flash player and the browser.
            Secondly, to refer to file rather than url, replace http://www.flashbax.com/popup1.html
            with popup1.html
            --
            Best Regards

            Urami


            --

            !!!!!!! Merry Christmas !!!!!!!


            <urami>
            If you want to mail me - DO NOT LAUGH AT MY ADDRESS
            </urami>