PDA

View Full Version : 5 Rectangles Changing Colors ...


mattg1981
04-17-2002, 12:38 AM
Okay .. this should be easy, I am sorry to ask, I thought I was picking flash up faster than this =\

At any rate ... I have 5 rectangles all aligned next to each other. They are black filled and have a gray outline (my BG is black). How do I make it so that the first rectangle starts out filled in a gray color, then it switches to black and the second one turns gray. Then that one turns back to black and the third one turns gray, so on until the the last one and then it goes back to the first one being gray again, and the loop starts over.

For Example ..
B = Black rectangle with Gray Outline
G = Filled in Rectangle in Gray

G B B B B
B G B B B
B B G B B
B B B G B
B B B B G
G B B B B ... so on

Can anyone help me with this ... should be easy ... I just cant figure it out .. do I have to make them MC's or graphics? Is it a shape or motion tween or neither? Thanks for looking ..

JHallam
04-17-2002, 01:54 AM
Okay, you seem to be making a mess of things, I don't know why exactly you want this effect but anway here goes.

Your best bet for all that, is tweening and using Tint effect but if you want to be more technical you can always use simple varibles such as.


triangle = new Color("triangleset");
triangle.setRGB(0xFF0000);


Triangle = your MC (movieClip) you want to transform colour.
so change the varible "triangle" to one of your corresponding MC's/



Thanks Look up in the tutorial sections or even use the search button and you will find many answers.

Please read the Board Rules before posting :D

Thanks