prova questo:
codice:
Color.prototype.setRandomRange = function(rl,rh,gl,gh,bl,bh){
this.setRGB(
(rl + rl==rh ? 0 : Math.round(Math.random()*(rh-rl))) << 16 |
(gl + gl==gh ? 0 : Math.round(Math.random()*(gh-gl))) << 8 |
(bl + bl==bh ? 0 : Math.round(Math.random()*(bh-bl)))
);
return this.getRGB();
}
creati un mc e posizionalo sullo stage.
selezionalo e scegli azioni ed incolla questo:
[/code]
onClipEvent (load) {
col = new Color(this);
}
onClipEvent (enterFrame) {
col.setRandomRange(0,45,0,77,0,107);//lascia lo zero e cambia
//gli altri valori (45,77,107) usa il mixer per i colori!
}
[/code]
non è un granchè!