|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Well, I was working on a game for a while. Then just kind of stopped, but now I'm starting back again. heh. But anyway, I was wondering if anyone has modified or created their own color fader. The one they give you in the Flash Tutorials is good, but I was hoping I could make it easier. In the Flash Fader Tutorial/Sample they make you have an over layer which is transparent (with details of whatever, they used a car), and an under layer which is a solid color. Move the fader and then you apply the color. Simple. But not how I have everything set up. I've got multiple movie clips that I need to change colors of, from that single fader. And also, I don't want to have to make a solid color movie clip and a transparent movie clip of each item I want to change colors of. That's just way too much. A friend of mine told me that all I have to do is make the Items I want to be able to change colors of, as white as possible (with the shades how i want them, but not too dark and not transparent), and in the action script of the color fader, change 255 to -255 and tell it to change on the actual movie clip, and not a solid layer behind it. So instead of changing the solid layer and having it show through the transparent layer, it'd just change the actual movie clip to teh color wanted from the fader. And no details are lost, since it goes to -255 instead of +255. Only problem is...he didn't use the same script as the flash sample, and he wont tell me it. I've edited the script, and it hasn't been working. I was wondering if anyone knows what I'm talking about and has done it, or can try to see if they can do it and tell me. Thanks again, Appreciate it.
|
|
#2
|
||||
|
||||
|
I am not sure of your issue but I made a fla and is that what you are talking about?
|
|
#3
|
|||
|
|||
|
Something of the sort, I guess. Let me try and explain a little more. It's an RGB fader. So it's got a seperate fader for red, green, and blue. So you can get different colors, etc.
But also, the MC you have was just a solid color. And if you made each letter fade let's say, from light red to dark red to start off with, then you play the movie and change the colors, the fade goes away, and goes back to a flat solid color. This is what I'm trying to get out of the color fader. Make a Movie Clip with a square, or anything, that has a gradiant on it. Make it white to grey. Now of the main stage, highlight the MC, go to your properties, and go to Color: Advanced - Settings. Make all the %'s 100. And on the right side, start them all at 0. Now start changing the values down, in the negatives. The red at -255 makes it Cyan. So it takes away the red, and leaves the green and blue. All -255 makes it black. But if you notice when they have color, they keep the gradiants. They don't become solid. Now is there a way to tell the action script from the rgb faders to when I want it red, it'll make the value R=0, G=-255, B=-255 ?? Because the script I have from the Flash Sample isn't allowing me to do that, and I'm not very knowledgable of action scripting, or else I wouldn't be asking for help. So I was wondering if anyone could help me try and solve this puzzle of mine. |
|
#4
|
||||
|
||||
|
Post the fla (or something like it) or send it to me and I'll give you some actionscript to do the trick or at least try and do the math. Just don't make me do any graphics!
Last edited by rynoe : January 29th, 2004 at 12:19 AM. |
|
#5
|
|||
|
|||
|
The Flash color picker can be found in the MX/Samples folder. File name Color_picker.fla
I kind of butchered mine and saved over it by accident. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Color Fader |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|