Urgent Help Please with HTML and Flash pages and functionality (possibly actionscript)

Discussion in 'Javascript' started by mwschenckCRL, Oct 27, 2006.

  1. mwschenckCRL

    mwschenckCRL Guest

    Questions are:

    I have a web page that displays a flash file that zooms and pans, but
    the next page button doesnt work.

    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?

    I have files in a zip file I can send, or look below for a snippet.


    Thank you

    =========

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

    <script language="JavaScript1.2">
    function zoom() {
    var flash = window.movie || document.movie; // Get Flash object.
    flash.Zoom(50);
    }

    if (isNaN(hdnPage) == true) {
    iPage = 1;
    } else {
    iPage = parseInt(hdnPage) - 1;
    }

    if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
    if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}

    current_page = iPage;
    load_page();
    /*
    document.MainForm.hdnAction.value = "prevPage";
    document.MainForm.submit();
    */
    }

    function next_page() {
    var hdnPage = current_page;
    var iPage;

    if (isNaN(hdnPage) == true) {
    iPage = 1;
    } else {
    iPage = parseInt(hdnPage) + 1;
    }

    if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
    if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}

    current_page = iPage;
    load_page();
    /*
    document.MainForm.hdnAction.value = "nextPage";
    document.MainForm.action = "/apps/catalogpager/pager.asp";
    document.MainForm.submit();
    */
    }

    </script>
     
    mwschenckCRL, Oct 27, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.