Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 5th, 2025, 12:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Stop Ticker
PostPosted: November 4th, 2004, 5:21 pm 
Offline

Joined: November 3rd, 2004, 4:52 pm
Posts: 99
Location: Worcester. UK
Posted this on the old forum in error.

Have created a 'countdown' clock that starts at 30. Its variable is <countdown> and is set at 30.

The multi-trigger has
Left mouse click
Ticker 1.00 secs
Subtract 1.00 from <countdown>

This works fine, but I cannot stop the ticker from counting down to minus numbers once it hits zero. How do I 'stop the ticker' at 0?

Also, the ticker is attached to a button and should only start on left mouse click. It insists on starting on page show. The 'multitrigger' seems to have a life of its own - cannot move the mouse click action 'above' the mulitrigger as it were - trust I'm not confusing matters!

Have tried a script

if (countdown = 0)
{
Stop Ticker
}

but this just generates and error message in the script box and I don't know why.

Many thanks.

John


For this message JMahoney has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 4th, 2004, 5:34 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

You will need to apply an If statement before the Subtract action which checks to see if the <countdown> variable is greater than 0 before the action is triggered. For example:

Code:
Left Mouse Click
  Ticker 1.00 secs
  If <countdown> > 0
      Subtract 1.00 from <countdown>


Now apply the changes and preview the publication. The clock should now count down from 30 down 0, then stop.

I hope this helps.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Last edited by Robin Garrett on November 4th, 2004, 6:31 pm, edited 1 time in total.

Top
 Profile Visit website  
 
 Post subject: Stop Ticker
PostPosted: November 4th, 2004, 6:11 pm 
Offline

Joined: November 3rd, 2004, 4:52 pm
Posts: 99
Location: Worcester. UK
Thanks Robin - that works fine.

However, the counter still insists on starting to work as soon as I hit F5 to test. I only want it to start its countdown when I left mouse click the button its 'attached' to.

If I create a left mouse click action for the button, the multi-trigger appears above the left mouse click action as soon as I add the ticker.

John


For this message JMahoney has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 4th, 2004, 6:27 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
The problem is that the Ticker is a trigger in itself and not an action dependent on the Left Mouse Click trigger. Please try applying the following actions to the button:

Code:
Left Mouse Click
  Loop while (countdown > 0)
    Delay 1.00
    Subtract 1.00 from countdown

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Last edited by Robin Garrett on November 4th, 2004, 8:55 pm, edited 2 times in total.

Top
 Profile Visit website  
 
 Post subject: Stop Ticker
PostPosted: November 4th, 2004, 7:55 pm 
Offline

Joined: November 3rd, 2004, 4:52 pm
Posts: 99
Location: Worcester. UK
Thanks Robin.

Problem solved.

John


For this message JMahoney has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group