@Jarlo
Jar here is part of the code as pre-loaded on Frame (1) of the script from
worldClock...
Very much like javascript. Actionscript is javascript, pero lahi lang na mga
objects gina control.
{...}
myDate = new Date();
hr = myDate.getHours();
mn = myDate.getMinutes();
sc = myDate.getSeconds();
ms = myDate.getMilliseconds();
sc = sc + ms / 1000;
minang = mn * 6;
hrang = hr * 30 + minang / 12;
secang = sc * 6;
clock.h._rotation = hrang;
clock.m._rotation = minang;
clock.s._rotation = secang;
hrname = "AM " + hr;
{...}
deaths = getnum(Math.round(fractionofyr * 57074490));
births = getnum(Math.round(fractionofyr * 77047956) +
Math.round(fractionofyr
* 57074490));
respiratory = getnum(Math.round(fractionofyr * 3697250));
tb = getnum(Math.round(fractionofyr * 1564784));
std = getnum(Math.round(fractionofyr * 3096567));
dia = getnum(Math.round(fractionofyr * 1868309));
cluster = getnum(Math.round(fractionofyr * 1120266));
meningitis = getnum(Math.round(fractionofyr * 172971));
hepatitis = getnum(Math.round(fractionofyr * 156391));
malaria = getnum(Math.round(fractionofyr * 910707));
tropical = getnum(Math.round(fractionofyr * 157844));
leprosy = getnum(Math.round(fractionofyr * 6160));
dengue = getnum(Math.round(fractionofyr * 18555));
otherinfectuous = getnum(Math.round(fractionofyr * 25864));
respiratoryinf = getnum(Math.round(fractionofyr * 4018031));
maternal = getnum(Math.round(fractionofyr * 509807));
perinatal = getnum(Math.round(fractionofyr * 2458509));
nutritional = getnum(Math.round(fractionofyr * 484143));
cancer = getnum(Math.round(fractionofyr * 7257318));
diabetis = getnum(Math.round(fractionofyr * 983063));
endocrine = getnum(Math.round(fractionofyr * 241269));
nuts = getnum(Math.round(fractionofyr * 1108829));
cardio = getnum(Math.round(fractionofyr * 16704486));
resiratory = getnum(Math.round(fractionofyr * 3697248));
digestive = getnum(Math.round(fractionofyr * 1964354));
othernon = getnum(Math.round(fractionofyr * 1516511));
traffic = getnum(Math.round(fractionofyr * 1189489));
poison = getnum(Math.round(fractionofyr * 349909));
fall = getnum(Math.round(fractionofyr * 391309));
fire = getnum(Math.round(fractionofyr * 311371));
drown = getnum(Math.round(fractionofyr * 381639));
accident = getnum(Math.round(fractionofyr * 921045));
suicide = getnum(Math.round(fractionofyr * 872662));
violence = getnum(Math.round(fractionofyr * 557915));
war = getnum(Math.round(fractionofyr * 171021));
isp = getnum(Math.round(1080000000 + fractionofyr * 80000000));
isp2 = getnum(Math.round(fractionofyr * 1113000000));
hiv = getnum(Math.round(fractionofyr * 4300000));
forestloss = getnum(Math.round(fractionofyr * 13000000));
forestreplanted = getnum(Math.round(fractionofyr * 5700000));
desertification = getnum(Math.round(fractionofyr * 6000000));
oil = getnum(Math.round(fractionofyr * 3.029500E+010));
oilspilled = getnum(Math.round(fractionofyr * 27000));
oilreserves = getnum(Math.round(1.326300E+012 - fractionofyr *
3.029500E+010));
oilms = (1.326300E+012 - fractionofyr * 3.029500E+010) / 3.029500E+010 *
3.155693E+010;
oildays = Math.floor(oilms / 8640000);
oilhr = Math.floor((oilms - oildays * 8640000) / 3600000);
oilmn = Math.floor((oilms - oildays * 8640000 - oilhr * 3600000) /
60000);
oilsc = Math.floor((oilms - oildays * 8640000 - oilhr * 3600000 - oilmn
* 60000) / 1000);
{...}
On Nov 7, 2007 3:44 PM, Jarlo Nicholas Solde <[EMAIL PROTECTED]>
wrote:
> Gi unsa man kaha calculate sa Oras ani using javascript maayo pa kwenta.
>
> On Nov 6, 2007 9:12 AM, Camilo III Lozano <[EMAIL PROTECTED]> wrote:
>
> > brutala sa gabuhat ato oi.. hmmm.. gi unsa kaha ang mga calculations
> > ato..? tsk tsk tsk...
> >
> >
> >
> > On 11/3/07, mungkey < [EMAIL PROTECTED]> wrote:
> >
> > > Lisod ni. kada segunda naay agpanganak ug duna puy daghan
> > > gapangamatay. hehe. =)
> > >
> > > http://www.peterrussell.com/Odds/WorldClock.php
> > >
> > > The crisis facing humanity today is, at its root, a crisis of
> > > consciousness. We are being called to put into practice the perennial
> > > wisdom
> > > of the ages... This site is offered as a stepping stone in that direction.
> > >
> > > --
> > >
> > >
> > >
> > > --
> > > Live free. Love free.
> > > http://mungkey.deviantart.com
> > > http://mungkey.blogspot.com
> > > _________________________________________________
> > > Kagay-Anon Linux Users' Group (KLUG) Mailing List
> > > [email protected] (http://cdo.linux.org.ph)
> > > Searchable Archives: http://archives.free.net.ph
> > >
> >
> >
> >
> > --
> > --------------------
> > http://www.metacatalyst.com
> > http://www.metacatalyst.org
> > http://www.zabyer.org
> >
> > Got my Own Hacker Key:
> > v3sw3BHhw5ln2pr5OFPck3ma2u4MLw5XVm+5l5UCi5Ne4t3b5en5g5RaIs5MSr3p2
> > http://www.hackerkey.com
> >
> > Registered Linux User: #439468
> > _________________________________________________
> > Kagay-Anon Linux Users' Group (KLUG) Mailing List
> > [email protected] ( http://cdo.linux.org.ph)
> > Searchable Archives: http://archives.free.net.ph
> >
>
>
>
> --
> Mr. Jarlo Nicholas L. Solde
> " In God We Trust"
> "Learning computer applications is not always provided by the school..
> Sometimes, high interest to learn, innovation, logic, dedication, and
> analytical skills are more than enough to master computer applications."
> _________________________________________________
> Kagay-Anon Linux Users' Group (KLUG) Mailing List
> [email protected] (http://cdo.linux.org.ph)
> Searchable Archives: http://archives.free.net.ph
>
--
--
Live free. Love free.
http://mungkey.deviantart.com
http://mungkey.blogspot.com
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph