dwayneneckles
08-21-2004, 11:58 PM
Hello,
Lets say I have a graphic and I set it with a color of yellor using the colortransform.....
var my_color:Color = new Color(this.my_mc);
var myColorTransform:Object = {ra:50 , rb:244, ga: 40, gb: 112, ba: 12, bb: 90, aa: 100, ab: 0 }
this.my_color.setTransform(this.myColorTransform);
what if i wanted the color to fade in.....
I didnt know how to do change using the onEnterframe to visually reduce the opacity of the color so that the original graphic comes through
i tried doing simply this,
this.onEnterframe = function() {
this.myColorTransform.ab--;
this.my_color.setTransform(this.myColorTransform);
if (this.myColorTransform.ab == -100)
}
}
but it doesnt work... any can tell me why? :confused:
Lets say I have a graphic and I set it with a color of yellor using the colortransform.....
var my_color:Color = new Color(this.my_mc);
var myColorTransform:Object = {ra:50 , rb:244, ga: 40, gb: 112, ba: 12, bb: 90, aa: 100, ab: 0 }
this.my_color.setTransform(this.myColorTransform);
what if i wanted the color to fade in.....
I didnt know how to do change using the onEnterframe to visually reduce the opacity of the color so that the original graphic comes through
i tried doing simply this,
this.onEnterframe = function() {
this.myColorTransform.ab--;
this.my_color.setTransform(this.myColorTransform);
if (this.myColorTransform.ab == -100)
}
}
but it doesnt work... any can tell me why? :confused: