Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2004
    Location
    Elgin, Illinois, USA
    Posts
    84

    First page 5 seconds then go to next page

    Hi
    Am trying to figure out how and where to put the script. On show or on timer?
    When my program starts page 1 comes up. Then after 5 seconds I want to go to the next page.

    I search the forum and found a script that's almost 100 lines long. Phew! That's a lot for a simple timer function.

    Anyway I tried this but I'm missing a few things. The page comes up and immediately goes to the next page. Not waiting 5 seconds.

    On Show
    01 Page.StartTimer(5000);
    02 Page.Navigate(PAGE_NEXT);
    03

    Basically it's a splash screen.
    Can someone help please?
    Thanks
    Allen

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Your almost there.

    The line: Page.StartTimer(5000)

    tells the app that you want the code in the On Timer event to be ran every 5000 milliseconds (or 5 Seconds). Once the timer is started, it will fire the On Timer event in the interval you specify.

    So, to have the page jump in 5 seconds, start the timer On Show, and then in the On Timer event, do the page jump.

    On Show:
    Page.StartTimer(5000)

    On Timer:
    Page.Jump(PAGE_NEXT)

  3. #3
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    The Page.Jump(NEXT_PAGE) should be:

    Page.Navigate(PAGE_NEXT); -- Note the Navigate change out

    Sincerely,
    Intrigued

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    that'll teach me to think I know what I'm talking about

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Eh... I transposed PAGE_NEXT to NEXT_PAGE... so I am no better.

    I am taking that XML approach (aka. Make your own variables up as you go). Har!
    Intrigued

  6. #6
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Question:
    When launching the OnTimer event, is it:
    Launch...wait..launch

    or

    Wait...Launch...wait

    WHich, of course would influence the sequence of events...
    Yossi

  7. #7
    Join Date
    Aug 2004
    Location
    Elgin, Illinois, USA
    Posts
    84
    Ahhhh! Thank you

    Now it works.

    So on show starts the event (Timer) and the script oh the timer tab executes what the On Show started.

    Thanks much
    Allen

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by yosik
    Question:
    When launching the OnTimer event, is it:
    Launch...wait..launch

    or

    Wait...Launch...wait

    WHich, of course would influence the sequence of events...
    Yossi
    Launch...wait..launch (from the point of the Page's On Show event firing) would be my opinion.
    Intrigued

Similar Threads

  1. Wait 5 seconds before loading video on page
    By scargin in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 02-21-2004, 11:15 AM
  2. Inheriting Page Properties
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:21 PM
  3. Setting Page Transition Effects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:08 PM
  4. Nested Page Inheritances, works fine but there's a bug...
    By Corey in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 12-17-2002, 03:16 PM
  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