hello, I'm glad that now we have flash section. so, let's flash...
some action-script clocks :
Code for this one :
Code :
this.onEnterFrame = function() {
var now:Date = new Date();
var msec:Number = now.getMilliseconds();
var sec:Number = now.getSeconds();
var min:Number = now.getMinutes();
var hr:Number = now.getHours();
//convert time to rotation
hr = hr*30 + min/2 - 180 ;
min= min*6 + sec/10 - 90;
sec= sec*6 + msec*(6/1000); //add msec for smooth rotation
//set hand's rotations
hsec._rotation = sec;
hmin._rotation = min;
hhr._rotation = hr;
//print date
dtext = now.toString();
dtext = dtext.slice(0,20); //remove GMT portion of date
}
Message edited by truth on 10-28-2008 at 01:40:47 AM
---------------
Good bye friends.
GoogleAds
Posted on 10-28-2008 at 01:32:12 AM
leo_killer
Flash penguin Profil: Penguin Pro
Posted on 10-28-2008 at 02:30:11 AM
Hi, glad to see that I'm not the only Flash penguin anymore Nice clocks, I like the second one very much They would look nice as desktop apps, you should consider getting mProjector
As far as I can see, you are, like me, still using AS 2 I should get to AS 3, but I'm too lazy
Hi, glad to see that I'm not the only Flash penguin anymore Nice clocks, I like the second one very much They would look nice as desktop apps, you should consider getting mProjector
As far as I can see, you are, like me, still using AS 2 I should get to AS 3, but I'm too lazy
Thanks.
I'm using an old version of flash. I hope AS3 be not much different.
but also scripted SVG looks equally interesting. though less supported.
I was actually onto some apps(gadgets & sidebars) with Adobe AIR but it seems to have complications
with flash content.