5 Replies - 1803 Views - Last Post: 20 February 2017 - 01:26 AM

#1 maxstar   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-February 17

Time calculator Scrpit

Posted 13 February 2017 - 11:45 PM

Hello
I need some help scripting a fast time calculator.
I am using (Adobe Animate CC 2015) with ( AS 3.0 )

I wanna make something like this :

I have 2 wall Clocks (CLOCK#1, CLOCK#2) .
the CLOCK#1 can by adjusted by entering a time numbers in ( INPUT TEXT ) underneath it, for examples if I enter 16:05 the (CLOCK ARROWS) will automatically match the numbers just after I finish enter the value in the ( INPUT TEXT ).
in the CLOCK#2 there will be a different case, the values of (CLOCK ARROWS) and ( DYNAMIC TEXT ) will be adjusted after I press a (CALCULATE) button.


The idea is that I need the CLOCK#2 change as following :
CLOCK#2 = CLOCK#1 + 30 min or 1 hour or any preferred value I want.

after press on (CALCULATE) button the values of CLOCK#2 (CLOCK ARROWS) and ( DYNAMIC TEXT ) will change +30 min of the CLOCK#1

Now for an example to make this more clear :
I open the swf/exe file and enter a value in CLOCK#1 ( INPUT TEXT ) as : 17:20
after I press (CALCULATE) button the CLOCK#2 will be set as : 17:50
and sure the (CLOCK ARROWS) will match the values

HOPE ITS NOT THAT HARD TO BE SCRIPTED !
Posted Image

Is This A Good Question/Topic? 0
  • +

Replies To: Time calculator Scrpit

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2354
  • View blog
  • Posts: 7,189
  • Joined: 15-January 14

Re: Time calculator Scrpit

Posted 14 February 2017 - 11:35 AM

Do you have any code so far? The most difficult part is going to be adjusting the clock hands, but even that isn't that hard. I assume that's just going to be a rotation on the movie clip for each hand.
Was This Post Helpful? 0
  • +
  • -

#3 maxstar   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-February 17

Re: Time calculator Scrpit

Posted 15 February 2017 - 02:40 AM

hello,
I just read your answer on my post

well . if we say we will ignore the clock arrows rotation . is it will be that easy ?
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2354
  • View blog
  • Posts: 7,189
  • Joined: 15-January 14

Re: Time calculator Scrpit

Posted 15 February 2017 - 03:10 PM

The whole thing is fairly easy, even the rotation, I just pointed that out as the hardest part to suggest that it's pretty easy to do. Do you have any code? What are you stuck on?
Was This Post Helpful? 0
  • +
  • -

#5 maxstar   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-February 17

Re: Time calculator Scrpit

Posted 20 February 2017 - 12:22 AM

I really know very few on AC3, I do script nothing yet.
It has been very long time since I scripted my last flash project, It was in 2005, I know very few codes like ( GO TO , Set Var , Set Rotation ... ) some few basics .

I understand that the forum mentioned to ( Don't Tell Us To Give You Code! ), but I can do nothing else.
so its up to you, help me out or I will just try search in net tell I get it.
Was This Post Helpful? 0
  • +
  • -

#6 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6807
  • View blog
  • Posts: 28,141
  • Joined: 12-December 12

Re: Time calculator Scrpit

Posted 20 February 2017 - 01:26 AM

As you know so very little about AS3 your first task is to study it until you reach a stage that you are comfortable with it and ready to start your project. If you are not willing to put in this time then your other option is to pay someone. Do not use your indolence as an excuse to get someone to do your work for you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1