Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8

Thread: Page Jump

  1. #1
    Join Date
    Mar 2006
    Posts
    16

    Page Jump

    I need a code for when a Image reaches another image another page will load

  2. #2
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Il try to help you but i need more info ,
    what do you mean about when image reaches another image?
    please post code you have tried

  3. #3
    Join Date
    Mar 2006
    Posts
    16
    Just when one image reaches a certain x and y corrdinate.

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    You could approach this by using the On Timer event for any given Page. Then do an "if..then...(do something, when desired X and Y coordinates are reeached)...end" check, for example.

    Look into Page.StartTimer() as well.
    Intrigued

  5. #5
    Join Date
    Mar 2006
    Posts
    16
    I dont understand how an on timer event could help me I need the page to jump when a image reaches a point on the page.

  6. #6
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Well what i think Intrigued was reffering to, was that if you want the page 2 to load whenever your image on page 1 would be on your desired X and Y pos that you might want it to do soo on a Timer event, but since we dont know, we cant really know when you want it to do soo? lol
    well here is an example ive put together anyway
    if put on a button as an example , lets say you move your image to X and Y pos to 0 and 0 for the pos result, then if you push a button with this script on it, then this script jump to page 2 if image is not at X and Y = 0 and 0 , then script will do somethings else for you or delete the else and just use end, if you desire to!



    Code:
    tblImagePos = Image.GetPos("Image1");
    		X = tblImagePos.X
    		Y = tblImagePos.Y
    -- Set Desired Pos here
    if X == 0 and Y == 0 then
    -- if true then jump to page 2 = next page
    Page.Jump("Page2");
    else
    -- else do something else here
    end

  7. #7
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Further explanation:

    One can monitor (via On Timer) the position of X and Y of both images. And when they are on the same X and Y then you Page.Jump() Action can be fired off. Taking if further, you can then do some basic math on the objects (easy if the images are the same sizes, never changing else a little more coding) and can adjust for images that "bump" into each other from any side of said image (top, bottom, left, right sides).
    Intrigued

  8. #8
    Join Date
    Mar 2006
    Posts
    16
    Nice Wonderboy it Worked thanks Guys for all the help with this project!

Similar Threads

  1. Page Jump problem
    By Yumes in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 07-08-2004, 02:47 PM
  2. Strange page jump
    By dave2103 in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 02-13-2004, 05:48 AM
  3. Page jump multiple times with different seek frame.
    By Geoffh in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 07-04-2003, 11:37 AM
  4. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  5. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts