Return to Snippet

Revision: 33962
at October 15, 2010 05:59 by bradvanspriellgmailcom


Initial Code
//Declare my variables;
var photoCounter:Number = 1;
var totalPhotos:Number = 11;

function nextPhoto(e:MouseEvent)
{
	if (photoCounter != totalPhotos)
	{
		trace(photoCounter);
		Tweener.addTween(this["photo"+photoCounter], {alpha:0, time:.5, transition:"easeOutQuad", onComplete:fadeInNext});
		photoCounter = photoCounter + 1;
	}
	else
	{
		Tweener.addTween(this["photo"+photoCounter], {alpha:0, time:.5, transition:"easeOutQuad", onComplete:fadeInNext});
		photoCounter = 1;
	}
}

Initial URL

                                

Initial Description
example of a Variable declaration and use

Initial Title
Variable declaration and use

Initial Tags

                                

Initial Language
ActionScript 3