AS3 Timer

16/06/2009

Simple AS3 Timer Example with a stop button.

This movie requires Flash Player 9

package {
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.MovieClip;
import flash.events.MouseEvent;
 
public class TimerExample extends MovieClip {
 
	var sW:Number = stage.stageWidth;
	var sH:Number = stage.stageHeight;
 
	public function TimerExample() {
 
		//add timer mc
		var t:timer_mc = new timer_mc();
		addChild(t);
		t.x = sW*.5;
		t.y = sH*.5-50;
		//add btn
		var btn:b = new b();
		addChild(btn);
		btn.x = sW*.5;
		btn.y = sH*.5;
		var myTimer:Timer = new Timer(500);
		myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
		myTimer.start();
		btn.addEventListener(MouseEvent.CLICK, stopTimer,false,0);
		btn.buttonMode = true;
 
		function stopTimer(e:MouseEvent){
		myTimer.stop();
		}
 
		function timerHandler(et:TimerEvent) {
			trace(myTimer.currentCount);
			t.t_txt.text = ' myTimer.currentCount ' + myTimer.currentCount;
		}
		}
	}
}
No Comments

Next Day Pair

8/05/2009

Chew on this sneaker fiends…


http://nextdaypair.tumblr.com

No Comments

Fresh Moves on Dubstep

14/04/2009

No Comments

Can I Have Your Number - Mad TV

13/04/2009

No Comments

Palos Verdes Cycling Route #1

5/04/2009

OH Yes, Nice Sunday ride. No pictures but a heck of a ride. Well only one ;)

A friendly 31 mile route, nice steep hills, switchbacks and an incredible view of the coast.

(Crappy razr photo) :/

View


View Larger Map
Death Valley Coming SOon!

1 Comment

Le Tour de Death Valley 2009

29/03/2009

First Ride with the new Bianchi :)

Full write-up coming soon…Videos & photos :)

ltddv

WOOOT!

No Comments

Trash Dance

30/01/2009

No words needed…


Trash Dance from Oliver Fergusson-Taylor on Vimeo.

No Comments

Classic Fresstyles

21/01/2009

Off the top I will always go back to these classics…

This one’s just hillarious

No Comments

Lightlane Concept

20/01/2009

More people are starting to cycle, not just for economic reason but for fun! Wohooo!

The hardest thing to do is capturing a drivers attention while on the road. It’s not easy saying “Hey, share the road”. I read somewhere that it cost about 5,000 to 50,000 per mile to make dedicated bike lianes. With the current crisis i don’t think we’ll be seeing any new bike lanes.

So what are we to do?

Make your own! Vandalism you say? Nope! these only seem to work at night, a laser is projected on to what you can call your “Very own bikelane” the picture below explains it all :P

More midnight riding! WHOhoo!

Lightlane Copyright

Lightlane Copyright

Concept: Altitude’s Alex Tee and Evan Gant

No Comments

one984 Artwork Collaboration

26/12/2008

Finally made Deviant Account that corresponds with my site. Newly inspired i collaborated with collaborated with some delicious line art by Yohana…

Used Cinema 4D for the 3D, photo stocks & Photoshop…

Collaboration with Yohana

Collaboration with Yohana

1 Comment