01

GO Tweening System


Check the most recent Go post for updates to HydroTween

I finally got a chance to play with Moses' new AS3 tweening system "GO". It's very, very cool, and very powerful. The only drawback to this is it takes a bit more work and is a little more advanced then the average tweening engine. However for advanced developers comfortable with customizing and modifying a tweening engine, GO will be a natural solution especially for big projects.

Go here for updates and info on the GO System.

I'm looking forward to seeing what other people come up with and how they extend the functionality of GO. This was a simple example but I plan on abstracting out the array tweening function so it can be used in other situations. Hopefully people will catch on to this and a library of extensions will develop. I think once that happens it will become very accessible to all developers.

Here's the current code example:

import com.hydrotik.go.SepiaTween;
import org.fuseproject.go.events.GoEvent;
import fl.motion.easing.Sine;
 
// Add Interaction
image.addEventListener(MouseEvent.CLICK, imageHandler);
image.buttonMode = image.mouseEnabled = image.useHandCursor = true;
var isSepia:Boolean = false;
 
 
// Setup our sepia matrix
var sepiaColor:Array = [
	0.3930000066757202, 0.7689999938011169, 0.1889999955892563, 0, 0,
	0.3490000069141388, 0.6859999895095825, 0.1679999977350235, 0, 0, 
	0.2720000147819519, 0.5339999794960022, 0.1309999972581863, 0, 0,
	0, 0, 0, 1, 0,
	0, 0, 0, 0, 1
];
 
var nullColor:Array = [
	1, 0, 0, 0, 0,
	0, 1, 0, 0, 0,
	0, 0, 1, 0, 0,
	0, 0, 0, 1, 0,
	0, 0, 0, 0, 1
];
 
 
// Setup GO
var oGo:SepiaTween = new SepiaTween(image, sepiaColor, 0, 3, Sine.easeInOut);
oGo.addEventListener(GoEvent.START, goHandler);
oGo.addEventListener(GoEvent.UPDATE, goHandler);
oGo.addEventListener(GoEvent.END, goHandler);
 
 
 
// Handlers
function imageHandler(event:MouseEvent):void{
	oGo.matrix = (isSepia) ? nullColor : sepiaColor;
	oGo.start();
	isSepia = !isSepia;
}
 
function goHandler(event:GoEvent):void{
	switch (event.type) {
		case GoEvent.START:
			trace("start");
			break;
		case GoEvent.UPDATE:
			trace("update");
			break;
		case GoEvent.END:
			trace("end");
			break;
	}
 
}

GO Sepia Source


HydroTween 0.4.4 Source and Example

Check the most recent Go post for updates to HydroTween

I finally got a chance to play with Moses' new AS3 tweening system "GO". It's very, very cool, and very powerful. The only drawback to this is it takes a bit more work and is a little more advanced then the average tweening engine. However for advanced developers comfortable with customizing and modifying a tweening engine, GO will be a natural solution especially for big projects.

Go here for updates and info on the GO System.

I'm looking forward to seeing what other people come up with and how they extend the functionality of GO. This was a simple example but I plan on abstracting out the array tweening function so it can be used in other situations. Hopefully people will catch on to this and a library of extensions will develop. I think once that happens it will become very accessible to all developers.

Here's the current code example:

import com.hydrotik.go.SepiaTween;
import org.fuseproject.go.events.GoEvent;
import fl.motion.easing.Sine;
 
// Add Interaction
image.addEventListener(MouseEvent.CLICK, imageHandler);
image.buttonMode = image.mouseEnabled = image.useHandCursor = true;
var isSepia:Boolean = false;
 
 
// Setup our sepia matrix
var sepiaColor:Array = [
	0.3930000066757202, 0.7689999938011169, 0.1889999955892563, 0, 0,
	0.3490000069141388, 0.6859999895095825, 0.1679999977350235, 0, 0, 
	0.2720000147819519, 0.5339999794960022, 0.1309999972581863, 0, 0,
	0, 0, 0, 1, 0,
	0, 0, 0, 0, 1
];
 
var nullColor:Array = [
	1, 0, 0, 0, 0,
	0, 1, 0, 0, 0,
	0, 0, 1, 0, 0,
	0, 0, 0, 1, 0,
	0, 0, 0, 0, 1
];
 
 
// Setup GO
var oGo:SepiaTween = new SepiaTween(image, sepiaColor, 0, 3, Sine.easeInOut);
oGo.addEventListener(GoEvent.START, goHandler);
oGo.addEventListener(GoEvent.UPDATE, goHandler);
oGo.addEventListener(GoEvent.END, goHandler);
 
 
 
// Handlers
function imageHandler(event:MouseEvent):void{
	oGo.matrix = (isSepia) ? nullColor : sepiaColor;
	oGo.start();
	isSepia = !isSepia;
}
 
function goHandler(event:GoEvent):void{
	switch (event.type) {
		case GoEvent.START:
			trace("start");
			break;
		case GoEvent.UPDATE:
			trace("update");
			break;
		case GoEvent.END:
			trace("end");
			break;
	}
 
}

GO Sepia Source


HydroTween 0.4.4 Source and Example

bottega veneta deep coffee pocket bag deep weight loss pills bingo and game casino gambling online virtual how to win at slots versace deep coffee venus bag women does viagra work online bingo uk discount drugstore where to get viagra or cialis diazepam cheap without rx bingo and slots does cialis really work bingo gaming chanel yellow shoulder bag bingo for cash slot machine buy meds online without presciption lancel pearl premier flirt prada white shoulder bag prescriptions pain killers without a prescription viagra product information cialis generic levitra viagra cialis male enhancement online gambling offers manolo blahnik beige hangisi valium indications anya hindmarch beige hobo how does diazepam work who has the cheapest cialis price for tramadol levitra website price for generic viagra top anti depressants pharmacy zolpidem marc jacobs antique gold keylock messenger bag pill for acne casino gambling buy carisoprodol cheap create poker website zyban tablet jimmy choo purple wells shoes valtrex medication counseling for erectile dysfunction hey bingo louis vuitton patent beige sandals louis vuitton monogram idylle pink tote power bingo slot games gucci black evening bag xanax fedex oral jelly viagra new casino slots discount erectile dysfunction medication christian louboutin white ambrosina pumps poker machine games buy no phentermine prescription high stakes poker buy tory burch golden reva ballerina flats casino locations roulette casinos play online casinos bingo and slots viagra effect on women louis vuitton damier graphite keepall bandouliere marc jacobs royal blue keylock shoulder bag play roulette online casino mania online buy compazine buy gucci black trainers online casinos en internet how to win slots christian louboutin blush barcelona sandals prescription diet drugs us only mobile casino games natural clomid buy overseas viagra online casino canada online xanax fedex norvasc generic erectile dysfunction products zoloft canada uk viagra supplier casino bonus tory burch deep blue tory logo rain boots poker for money prescription drugs online adipex no prescription needed pharmacies geniune cialis no prescription ambien dosing how do muscle relaxants work valentino beige snakeskin clutch what is tadalafil ativan dosages sales viagra ysl white muse bag cialis to buy online gambling strategy cheapest phentermine pills christian dior biege medium saddle handbag alprazolam brand cheap viagra new zealand low cost adipex bally patent patent red jana tote ambien pharmacy manolo blahnik bow booties what is viagra used for dosage viagra new diet pill fda approved play slots online now cialis best price las vegas bingo cialis generic tabs versace purple venita bow satchel chloe patent purple cyndi tote fendi apricot snake peekaboo handbag discount lipitor prescription ambien ambien 10mg poker us levitra free samples do meridia phentermine work the same order celine black shoulder bag louis vuitton patent black sandals over the counter medication cheap 37 5 phentermine safe effective diet pills loewe white handbag dolce gabbana black trainers buying phentermine alprazolam generic for xanax ativan 2mg prada beige fairy l bag generic cialis canadian diet phentermine viagra online cheap europe cialis platinum play bingo levitra info prescription drugs migraines levitra alternative phentermine ingredient how does cialis work louis vuitton damier azure canvas galliera gm order amoxicillin new arthritis and psoriasis drug lipitor online pharmacy professional blackjack how does cialis ultram ingredients