ciao a tutti, ho questo piccolo problema:
ho trovato in giro per il forum questo interessante effetto su immagine
---------------------------------------------
ovieClip.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();
------------------------------------
mi funziona benissimo se lo metto nella root ma non fa niente se risiede dentro un mc.
Come mai?
cosa sbaglio? devo fare qualcosa in particolare per richiamare la funzione?

Rispondi quotando