questo il codicce per l'effetto solarizza
chiaramente il tuo movie clip in questo caso deve avere come istanza test_mccodice: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) } } //con questo richiami la proto test_mc.luminosita();
![]()

Rispondi quotando