You Are Here Home > September 2008

September 2008

Internet Explorer 7 and viruses

On this page:
http://www.microsoft.com/windows/products/winfamily/ie/default.mspx

It says “See how it helps to protect you from viruses, spyware, and other risks, plus more easily find the information you need.”.

Do you know how? It’s a virus itself!
Just kidding :)

Internet Explorer 7 and viruses
Comments (0)   Filed under: Annoying Stuff,Web Browsers   Posted by: Hamid

How to show a microphone activity indicator in Actionscript 3

Here is what I did, first setup a timer:

var micDelay:uint	= 100;
var micRepeat:uint	= 0; /* Run forever */
var micTimer:Timer = new Timer(micDelay, micRepeat);

And then tell it to call our function every 100 milliseconds:

micTimer.addEventListener(TimerEvent.TIMER, ShowMicActivity);

Then the function:

var min:Microphone = new Microphone();
var micActivityIndicator:Shape = new Shape();
function ShowMicActivity(e:TimerEvent):void {
             var h:int = 0;
             var y:int = 0;
	if (mic.activityLevel > 0) {
		h = mic.activityLevel;
		y = 150 - mic.activityLevel;
	} else {
		h = 5;
		y = 150 - 5;
	}
	micActivityIndicator.graphics.clear();
	micActivityIndicator.graphics.beginFill(0x000000);
	micActivityIndicator.graphics.drawRect(0, y, 10, h);
	micActivityIndicator.graphics.endFill();
}

I hope this helps someone, I couldn’t find anything online.

How to show a microphone activity indicator in Actionscript 3
Comments (7)   Filed under: Actionscript,Flash   Posted by: Hamid
« Newer PostsOlder Posts »