10 Replies Latest reply on Nov 7, 2006 12:22 PM by crlaurence

    Actionscript help needed with getting Next Page to work

    crlaurence
      I just have a simple question (hopefully).

      Question is:

      I have a web page that displays a flash file that zooms and pans, but I cant get the Next Page link to display. (will also want 1st, last and previous page)

      1. Can the next page work and load the next or previous numbered file?

      2. Does it have to have all pages in one file, then it calls the next frame?

      Snippet below, or I can e-mail example files.

      Please help, Thank you, Mike
      ============SNIPPET==========
      <!--[if IE]>
      <object id="movie" type="application/x-shockwave-flash"
      width="300" height="500">
      <param name="movie" value="1.swf">
      </object>
      <![endif]--><!--[if !IE]> <-->
      <embed name="movie" type="application/x-shockwave-flash"
      src="1.swf" width="300" height="500">
      </embed>
      <!--> <![endif]-->


      <form name="f" onsubmit="return false;">
      <button name="button" onclick="next()">Next Page</button>
      <button onclick="zoom()">Zoom In</button>
      <button onclick="zoom2()">Zoom Out</button>
      <button onclick="pan()">Pan</button>
      <button onclick="setzoomrect()">Rect</button>
      </form>

      function next() {
      var flash = window.movie || document.movie; // Get Flash object.
      flash.Zoom(50);
      }