Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 11:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Creating Timer in Opus Flex
PostPosted: December 21st, 2006, 3:06 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I was looking for a timer for a Flex pub and, just now, after searching the Forum, found this wonderful solution:

viewtopic.php?t=1380&highlight=timer

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2006, 6:16 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Here's what I did. I created a loop until page changes action containing some script and a delay action. In the script, I set up an action to increment a variable (TVAR) by 1.

Then when you want to evaluate, you can apply the following to the variable.

mnt=Math.floor(TVAR/60);
sec=Math.floor(TVAR%60);

if (mnt<10){
mnt="0"+mnt;
}

if (sec<10){
sec="0"+sec;
}
var3=mnt+":"+sec;

Var3 would give you a "timer" this way.

This should at least get you started and you can fiddle with it till you get it to do what you want.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 21st, 2006, 6:42 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

Thank you for your reply and help.

I'll take a look at the script, "fiddle" with it. The basic timer that was in the Forum topic's sample is helpful. I suspect what you've sent would support more versatility.

Thanks.

Kind Regards,

_________________
Stephen


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 29 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