Ciao a tutti, ho questo tipo di problema:
sto utilizzando questo script :
MovieClip.prototype.luminosita = function(){
this.c = new Color(test_mc)
this.o = {rb:255,gb:255,bb:255}
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)
}
}
test_mc.luminosita(this);
per creare un effetto di solarizzazione ad una foto in MC a cui ho dato nome istanza test_mc.
Il mio scopo e di far scattare la solarizzazione solo dopo che il rettangolo si è fermato, lo fà , MA DA' QUELL' EFFETTO FASTIDIOSO.
Mi sapete dire perchè?
Qui il FLA
Grazie a tutti