[Golist] HydroTween Color Matrix solutions

Shane Colella scolella at qorvis.com
Fri Aug 8 15:00:47 PDT 2008


Of course,..right in front of me...
Such an easy fix, doh!
Thank moses!
I have a few sites i'm working on using goASAP i can't wait to launch, i will keep you posted...
Keep up the good work...


-------------------------------------
----------------------- 
Shane Michael Colella | Director
Qorvis Communications
571-271-3453 mobile
703-744-7806 phone
703-744-7840 fax
scolella at qorvis.com


----- Original Message -----
From: golist-bounces at goasap.org <golist-bounces at goasap.org>
To: Mailing list for the Go ActionScript Animation Platform <golist at goasap.org>
Sent: Fri Aug 08 17:49:05 2008
Subject: Re: [Golist] HydroTween Color Matrix solutions

Try using that color reset constant on the remove color tween...

m


On Aug 8, 2008, at 4:00 PM, Shane Colella wrote:


		Greetings everyone,
	 
	            I’m currently working on a photo gallery which I have a line of pics that display one after another.  I’m sliding the line around depending on which pic has been selected.  The transitions are where I’m running into difficulty.  I’m using HydroTween to de-saturate and then saturate the images, with the following code:
	 
	            public function set inColor(bool:Boolean):void{
	                                               
	                                                if(bool!=_inColor || !_setColor){
	                                                            trace("\n\t -- set color : "+_index);
	                                                            _inColor = bool;
	                                                            _setColor = true;
	                                                            if(_inColor){ //--add color
	                                                                        HydroTween.go(this, { saturation:2.8}, 1, 0, Quartic.easeOut);
	                                                            }else{ //--remove color
	                                                                        HydroTween.go(this, { saturation:-0.9}, 1, 0, Quartic.easeOut);
	                                                            }
	                                                }
	                                    }
	 
	What’s interesting is the numbers I’ve had to use to get it to “kinda” work.  I realize that the colorMatrix is involved so technically we are adding filters one after another, which eventually, if I keep going back and forth, completely de-saturates the images.
	My question:
	Is there a clean way anyone has used to “reset” the filters so I’m not cumulatively adding filters onto my pics.  Basically, I want to be able to just set saturation to 1, and let it display normal, and set it to -1 to de-saturate, but that’s not working at all. 
	 
	Any thoughts from the team?
	 
	I decided to post here feeling this may be a pretty common problem with the colorMatrix side of HydroTween if one is just trying to go back and forth from the same effect, in this case saturation…
	 
	Thanks
	 
	 
	 
	 
	Shane Michael Colella
	
	
	_______________________________________________
	GoList mailing list
	GoList at goasap.org
	http://goasap.org/mailman/listinfo/golist_goasap.org
	
	



More information about the GoList mailing list