Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Posts
    62

    Is there a way or trick for use 2 timer whit different values in one page?

    when i call On timer event by "Page.StartTimer(n);" then it execute to apply All of command in per n million Sec.

    I want have :

    On Preload:
    Page.StartTimer(1000);
    result===> execute to in On Timer only.ThisMycode();

    On Show:
    Page.StartTimer(300);
    result===> execute to in On Timer only.OtherMycode();

    I waiting for help me by Dear users of AMS.
    THX

  2. #2
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    There's only one unfortunately, I'd recommend Worm's Timer Action Plugin, For multiple timers on one page or more.

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You can do someting like this too...

    Code:
    nCounter = 0;
    Page.StartTimer(100);
    On Timer
    Code:
    nCounter = nCounter + 100;
    
    if (nCounter/300) == Math.Floor(nCounter/300) then
    	Label.SetText("Label1", nCounter)	
    end
    
    if (nCounter/1000) == Math.Floor(nCounter/1000) then
    	Label.SetText("Label2", nCounter)
    end
    
    if nCounter == 3000 then
    	--keep nCounter from getting too large
    	nCounter = 0;
    end

  4. #4
    Join Date
    Jun 2006
    Posts
    62
    Thanks man
    Your trick is very nice...
    but, hey AMS add a timer action for your user!plz

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    object timers would be very nice, a timer event in every object, iv been searching hard for a stable timer alternative, i'v found 1 or 2 things i might be able to use but a intergrated timer system (like the action plugin) would be good
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I know... I need to dig into the Vista issue, just need some time (bad pun)

  7. #7
    Join Date
    Aug 2003
    Posts
    2,427
    This example contains a tiny (1K and 1pixel ) flash object that does nothing but send an fsCommand "1" once a second. You can stack as many as you like for multiple timers on the page and control them independently. This one has got 3 timers.

  8. #8
    Join Date
    May 2006
    Posts
    5,380
    hey worm....that wasent a hint, lol

    longedge, thats pertty neat, could come in handy
    Open your eyes to Narcissism, Don't let her destroy your life!!

  9. #9
    Join Date
    Jun 2006
    Posts
    62
    Quote Originally Posted by longedge View Post
    This example contains a tiny (1K and 1pixel ) flash object that does nothing but send an fsCommand "1" once a second. You can stack as many as you like for multiple timers on the page and control them independently. This one has got 3 timers.
    Thanks for nice trick
    u are a Genius...

Similar Threads

  1. Building pages from script
    By Roboblue in forum AutoPlay Media Studio 7.5
    Replies: 23
    Last Post: 02-28-2008, 10:31 AM
  2. html page and link
    By mountain07 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-19-2005, 09:00 PM
  3. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  4. Replies: 14
    Last Post: 06-24-2003, 04:21 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