0 Replies Latest reply on Dec 11, 2008 12:40 PM by et27et

    A tutorial for pop up


      This tutorial will show you how to create a cool pop up windows with no toolbars.

      1. Create a button in your Flash file.

      2. Right click the button and go to actions give actions:

      getURL ("JavaScript:openWin('test.html', '250', '250')");

      ERROR: THE STATMENT MUST APPEAR WITHiN HANDLER, could you explain please what is wrong

      3. Publish your movie, selecting the HTML and Flash options you prefer.

      4. Open the html page in notepad, and insert the following code in between the <head> and </head> tags.

      <script language="JavaScript">
      function openWin(url, w, h)
      var winprop = "width=" + w + ",height=" + h;
      openwin = window.open(url,'',winprop);

      That's it! Preview your page in a browser.


      Part 1 -- FLASH code

      In actions choose the GET URL function and paste in following code:


      Where somePage.html is the filename or URL of the page or site you wish to pop up.
      Note: The above code is spread over two lines for tutorial neatness only. In Flash it need be on only one line.

      Part 2 ---HTML code

      Paste this code exactly as it appears below, between the HEAD tags in the HTML source.

      <script language="JavaScript">
      function openNewWindow(URLtoOpen, windowName, windowFeatures) {
      newWindow=window.open(URLtoOpen, windowName, windowFeatures);

      Add the following parameter inside the <EMBED> tag in your HTML page which houses the SWF file:

      swLiveConnect=true NAME=yourmovie.swf Text Text