acctually I thought if I could pinpoint on the shape and change that but
I can only address the MC
on the text I can address the DynamicText this.buttText.buttonText.textColor = 0xFFFFFF but it didnt help either
I also tried this.buttText.buttonText.background=0xFFFFFF; that colored a box and the color changed as well not to white
The text field is inside the movieclip that you are changing the color of, right? Although it seems one is this.Bar and the other is this.butText.buttonText.
Those paths would seem to indicate that they aren't together. So I'm confused as to why they would both change color.
If one is inside the other, then the color applied to the parent clip will color all the children as well and nothing you can do to the child will change that.
If that is the case you need to separate the clips inside the parent. So perhaps you would have:
bar which contains artwork and textfield. You could then apply a color transformation to artwork without changing the color of textfield. But if you applied the change to bar both artwork and textfield would change.
I simplified the case a little:
colorBar = new Color(this.Bar);
colorText = new Color(this.buttonText);
if I tried:
colorBar.setRGB(nRed << 16 | nGreen << 8 | nBlue); = the text changed color as well
then I tried:
colorText.setRGB(nRed << 16 | nGreen << 8 | nBlue); = the text changed color and the Bar DID NOT CHANGE
this is a menu bar and an image is in the background and the text doesnt show properly becuse of the image colors.
I'm using flash 8
My mistake heek
I had an additional declaration in the code which coused the problem!!
colorBar = new Color(this);
Glad that worked out for you because there was no reason in the code you provided that should have caused both of those to change.
For the future you might want to look into using the ColorTransform class. As the Color class is depreciated. With that (or with the setTransform method of the Color class) you can do more complex transforms where you change one color to this and another color to that, but it involves some rather (to me anyways) difficult math to control precisely.
BTW, if you can would you mind marking my post helpful? I'm a sucker for points!