Archive for the ‘Tutorials’ Category

AS3 Universal ClickTAG for Google Adwords

12.07.2011

import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;

var _clickArea:MovieClip;

setClickArea();
function setClickArea():void
{
	_clickArea = new MovieClip  ;
	addChild(_clickArea);
	_clickArea.graphics.beginFill(0xff0066);
	_clickArea.graphics.drawRect(0,0,stage.stageWidth,stage.stageHeight);
	_clickArea.graphics.endFill();
	_clickArea.alpha = 0;
	_clickArea.buttonMode = true;

	// CODE FROM GOOGLE ADWORDS
	_clickArea.addEventListener(
	      MouseEvent.CLICK,
	      function(event: MouseEvent) : void {
	      flash.net.navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG), "_blank");
	      }
	      );
}

Take a Snapshot with your Webcam and Save it to your Desktop

22.08.2010

In this tutorial I will show you how to connect the webcam, take a snapshot and save it wherever you want on your computer. You can download the final result here.

(more…)