Long time since I’ve posted on Planet WebKit:
Here’s a proposed high resolution Timer API for WebKit (and hopefully HTML5). It’s based off of Adobe’s “flash.utils.Timer” API found in ActionScript 3.0.
Timer : EventDispatcher
- currentCount:Number => Total number of times the timer has fired since it started (at 0)
- Â delay:Number => The time, measured in millisecondsseconds, between timer firings. Precision is browser defined, but should be at least 1ms
- repeatCount:Number => The total number of times the counter is set to run. If the timer is “0″, the timer will run forever or until its stopped.
- running:Boolean => If the timer is running or not
- start() => Starts the timer if the timer is not running
- stop() => Stops the timer if the timer is running.
- reset() => Stops the timer if its running, and resets “currentCount” back to 0.
The timer will implement the browser native event dispatching system (W3C for most, IE proprietary for MSIE), and will fire the following events:
- timer => Dispatched whenever the timer reaches the interval specified by the “delay” property.
- timerComplete => Dispatched when the timer’s repeatCount reaches 0.
Please note the timer will be a high resolution timer, with no minimum bound, so there’s no compatibility issues when using setTimeout/setInterval. Plus, the API is simple enough to be implemented in terms of setTimeout/setInterval on browsers that do not implement the proposed.
Please leave feedback on the proposed API.
- Repeat Count defaults to 0, meaning, go on forever. If you want it to be “one shot”, then set repeat count to 1.
var timer = new Timer();
timer.delay = 0.01;
timer.repeatCount = 1;
// Add Event Listeners
if(timer.addEventListener) timer.addEventListener(“timercomplete”, OnTimerComplete); // W3C
else if (timer.attachEvent) timer.attachEvent(“ontimercomplete”,OnTimerComplete); // MSIE
// Event Lsitener
if(!e) e = window.event; // MSIE
// Do Something
AT&T FastAccess DSL users might be used to using “mail.bellsouth.net” as their POP3/SMTP servers for a long time now. However, AT&T recently introduced 2 new servers that are (1) Secure (via SSL), and (2) work when not on the AT&T network.
POP3: fpostoffice.isp.att.net, SSL Enabled, Port 995
SMTP: fmailhost.isp.att.net, SSL Enabled, Port 465
If anyone wants instructions for their particular mail client, reply back to here, and I’ll send you instructions (as well as provide them on here).
Who was your FIRST prom date?
Didn’t go to prom
 Do you still talk to your FIRST love?
Yes.. currently engaged to her
 What was your FIRST alcoholic drink?
A sip of Shelley’s wine cooler.. gross
 What was your FIRST job?
Assistant to the IT guy at MHS, didn’t get paid though. First paid job is the current one.. EyeWonder, Inc.
 What was your FIRST car?
a 1992 Ford Taurus GL
 Who was the FIRST person to text you today?
 Who is the FIRST person you thought of this morning?
 Who was your FIRST grade teacher?
My memory no longer possesses the knowledge.
 Where did you go on your FIRST ride on an airplane?
Kansas City, MO
 Who was your FIRST best friend and are you still friends with them?
“John John” Hodges. Haven’t seen him in a few years
 What was your FIRST sport played?
Never played one.
 Where was your FIRST sleep over?
John John’s house when I was little.
 Who was the FIRST person you talked to today?
Wes Brennan when I came into work.
 Whose wedding were you in the FIRST time?
I have yet to be to a wedding. It’ll probably be my own.
 What was the FIRST thing you did this morning?
Put clothes on
 What was the FIRST concert you ever went to?
The Bravery in ATL with Jenny.
 FIRST tattoo or piercing?
 FIRST foreign country you went to?
 What was your FIRST run in with the law?
Never had one, but I’ve fought with customs/immigration before….
 When was your FIRST detention?
 What was the FIRST state you lived in?
Florida, but lived in Georgia for as long as I can remember.
 Who was your FIRST roommate?
[24) When was your FIRST limo ride?
 Who will be the FIRST to repost this?
Cajun country is getting hit by yet another hurricane. It’s expected to cause at least as much physical damage as Katrina. but no where near the amount of damage in lives. New Orleans has had 95% of its population evacuated, quite impressive.
I wish the people of the Gulf Coast the best of luck in this act of God and the fury of nature that will be unleashed on to you soon.