This content has been marked as final. Show 10 replies
For your first problem, the fill issue, the way around it fill and the border is to create the border as a separate movieclip, and only change the color of the fill movieclip. Let me see if I have figured out a way for your second issue, I was trying to do a simialar thing recently.
I am not too sure about keeping the lines from changing color. However if you are looking for a simple way to tween the colors of a movie clip via actionscript go to www.mosessupposes.com and download the Fuse Kit by Moses Gunsech. It is one of the best things out there for running actionscript tweens. Plus there are shortcut commands that allow you to make simple statements to change colors of movieclips and to string together multiple tweens in order using the Fuse API.
As far as keeping the border form changing. I would cheat and slap another movie clip on top with just the black border.
Make the border and the fill two seperate clips (fillClip & outlineClip) nested within one_mc then change your code to this:
var hexColor:Colour = new Color(one_mc.fillClip);
For your second query I would suggest something like this (although without knowing exactly what you are doing I might be well off):
Set up an Array whith all you 20 clips stored in it then make a function that uses setInterval to change the color of any clip that is sent as an argument to that function (should be similar to the script you are already using).
Lastly, make another setInterval that steps through the array and sends each clip to the function as it reaches it.
Be carefull to give each setInterval an individual name (maybe stored in an array) or you will get in to all kinds of looping issues
Bit vague im afraid but I hope it helps
Hey thanks for all your answers they are great i will go away and have a fiddle about with my code after all the adivce you guys have given me!!!! :D
Thank you, you have all definetly saved my day :D
Okay, so i persevered with the arrays and functions and i used some code off the forum to help me get this code working and my movie is now changing colour how i want it to now :D However i have a slight problem i cant seem to get it to stop randomly changing colours??!?!?! Any advice?? The code is attached below:
Oh i might not have made this point very clear........i want the _mc's to change colour for a certain time and then stop, not just stop after the one colour change.
Thanks for any help :D
Sorry guys, to be a complete pain, just wondering if anyone knows of a solution to my problem, i was chuffed when i got it all working but i just cant work out how to stop it :S?!?!?!?!
Please help, i would be very grateful :D
Thank you so much thats great :D