Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Flex Publication Timer
PostPosted: July 12th, 2010, 1:19 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,

Problem solved.

I had been trying to figure out how to measure the time (if possible in milliseconds) in a Flex pub quiz from when the user is shown a word until when they press the space bar (if the word applies).

Absent availability of the clock feature in Flex pubs, wasn't sure how to measure and store this.

Came across a posting on the forum about using a ticker. Initially, couldn't get it to work in my project. More experimenting: finally got it to work in my project.

So, no need for any help. :)

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex Publication Timer
PostPosted: February 8th, 2011, 1:07 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 Josie,

I decided not to develop the project in Flex, but instead used a Pro pub. The Pro pub had more flexibility for setting up the timing needed in this specific project. I also finally did not need this type of timing, since I learned that it was not required for this project. Sorry I can't be of more help.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex Publication Timer
PostPosted: February 10th, 2011, 7:59 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
so long ago I've forgotten how I did this, but clock features are certainly usable in Flex...
http://macsnapper.com/flash/clock.htm

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex Publication Timer
PostPosted: February 10th, 2011, 1:43 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 Mac,

Very nice design!

Flex has enormous capability.

If you ever come across the IMP it would be interesting to see the actions/scripting that were used to achieve this.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex Publication Timer
PostPosted: February 11th, 2011, 10:43 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
Hi
I put the hour minute and second hands in frames stacked above each other called (oddly enough) hours, minutes seconds.
I used this script to set the starting rotation angle of each frame according to current system time, e.g. hours.Rotate(hourangle,0.0)

var myDate = new Date()
var currHour = myDate.getHours()
var currMins = myDate.getMinutes()
var currSecs = myDate.getSeconds()
minangle=currMins*6
secangle=currSecs*60
if (currHour > 12)
{currHour = currHour-12
}
currHour = currHour+(currMins/60)
hourangle=currHour*30
hours.Rotate(hourangle,0.0)
minutes.Rotate(minangle,0.0)
seconds.Rotate(secangle,0.0)


each frame was set by an on show action to rotate once each minute, hour or 12 hours, as appropriate, so they are not continuously reading the system time.

There's a lot of animation action in all the other objects- check out your CPU meter while you watch the pub running!
cheers

(The bugs on the homepage http://www.macsnapper.com are also made in Opus of course- actions, not script.)

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex Publication Timer
PostPosted: February 11th, 2011, 1:45 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 Mac,

Thanks for this script.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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