ciao,eccola:
codice:
Effetto solarizzazione foto
MovieClip.prototype.luminosita = function(){
this.c = new Color(mc)
this.o = {rb:100,gb:100,bb:100}
this.up = true
this.onEnterFrame = function(){
if(this.clip._alpha < 100){
this.clip._alpha += 10
}
if(this.up == false){
this.o.rb -= 10
this.o.bb -= 10
this.o.gb -= 10
} else {
if(this.o.rb < 255){
this.o.rb *= 1.5
this.o.bb *= 3
this.o.gb *= 1.5
} else {
this.o = {rb:255,gb:255,bb:255}
this.up = false;
}
}
if(this.o.rb < 0){
this.o = {rb:0,gb:0,bb:0}
delete this.onEnterFrame;
}
this.c.setTransform(this.o)
}
}
mc.luminosita();// per richiamare l'effetto