IPB
 
Closed TopicStart new topic
> Noob Question Abt Flash Lite Clocks, how to make a clock in flash???
mistretzuagresiv
post Oct 23 2007, 02:04 PM
Post #1





Group: Partial Members
Posts: 1
Joined: 21-October 07
Member No.: 2129063



Hey there. I have been trying to make a clock that would work on let's say my s40 nokia. The problem is that there is no way i can make it work on the phone, but it works on the PC. I've been trying to export the movie as flashlite 1.1 from macromedia flash 8 and an arror ocurs saying that some commands such as time.getseconds are not compatible with flash lite 1.1.

the code looks like this:

time=new Date(); // time object
seconds = time.getSeconds()
minutes = time.getMinutes()
hours = time.getHours()

hours = hours + (minutes/60);

seconds = seconds*6; // calculating seconds
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours

sec._rotation=seconds; // giving rotation property
min._rotation=minutes; // giving rotation property
hour._rotation=hours; // giving rotation property

Does anybody have any ideas?
Go to the top of the page
 
+Quote Post
Andohay
post Oct 25 2007, 02:54 PM
Post #2





Group: Partial Members
Posts: 7
Joined: 14-September 07
Member No.: 1939104



Hello! You should use fscommand2("GetTimeHours") function instad of "time=new Date(); // time object" and it will look like this

Minutes = fscommand2("GetTimeMinutes");
Houres = fscommand2("GetTimeHours");

minute._rotation = Minutes*6;
houres._rotation = Houres*30 + minutes*0.5;

I hope it will work.
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

 

Lo-Fi Version Time is now: 18th May 2013 - 06:47 PM