Forum Discussion
UshwinPai
5 years agoCommunity Member
Actual clock showing actual time
Hi guys
Spent a while looking for the answer, and trying to build it myself - but to no avail! I want to make a digital clock that works to show the real world time on screen. I am building a f...
JohnCooper-be3c
2 years agoCommunity Member
Phil is correct - and I like the idea of incorporating the code as a function - indeed elegant.
What I actually did was have the JavaScript code above executed in a layer called "Get Time" and in the layer was an:
Execute Javascript when the timeline starts on this layer
then:
Showlayer NewTime when the timeline ends on this layer
In the Layer NewTime it just has:
Show layer GetTime when the timeline reaches 0.5 seconds
In this way I update the clock every half second.
Although effective my solution is a bit inelegant - and you can get into an infinite loop if you try and preview it - although that can be fixed.