acornFlyer
01-20-2006, 02:27 PM
I have 2 MCs (myClip01_mc and myClip02_mc) that I would like to change colour when a controlClip_mc is rolled over. I also have an array (colourArray) containing 20 colour values.
When controlClip_mc is rolled over, myClip01_mc should change colour to the first value in the array and myClip02_mc should change colour to the second value in the array. These colour changes should occur simultaneously.
While the mouse is still rolled over the controlClip_mc, after an interval (determined by a variable), myClip01_mc and myClip02_mc should then change colour to the third and fourth values contained in the array. After the same interval, they should then change to the fifth and sixth values in the array and so on until all of the colour values in the array have been used, after which the process starts again with the first and second colour values.
Conceptually, I know what should be happening here, but for some reason I really struggle with getting loops to do what I want them to and I'm really stuck here.
Can anyone help? Thanks in advance.
When controlClip_mc is rolled over, myClip01_mc should change colour to the first value in the array and myClip02_mc should change colour to the second value in the array. These colour changes should occur simultaneously.
While the mouse is still rolled over the controlClip_mc, after an interval (determined by a variable), myClip01_mc and myClip02_mc should then change colour to the third and fourth values contained in the array. After the same interval, they should then change to the fifth and sixth values in the array and so on until all of the colour values in the array have been used, after which the process starts again with the first and second colour values.
Conceptually, I know what should be happening here, but for some reason I really struggle with getting loops to do what I want them to and I'm really stuck here.
Can anyone help? Thanks in advance.