PDA

View Full Version : color change


Luis
11-29-2002, 12:17 AM
Hi, everybody, I would like to ask how can i make a color change to my
movie clip.I've been looking to the Actionscript dictionary and use this

myColor = newColor(myMovie)
myColor.setRGB(0x993366);

but nothing happens to my clip!!!! My stage looks like 1 layer with the movie clip; 1 layer for actions.
Am i making right.
I'de apreciated if somebody could help me

snapple
11-29-2002, 12:56 AM
on (release) {

myColorObject = new Color(_root.instanceNameHere);
myColorObject.setRGB(0x009900);

The new color object is called myColorObject and is associated with the movie clip instance name.

The set RGB method takes the parameter 0xRRGGBB which is the hex code for a color.

snapple :)

Luis
11-29-2002, 03:03 PM
But Snapple, thatīs not a button, isn't that code for button????,and can i used in a different layer??

Ricod
11-29-2002, 03:17 PM
snapple just put it on a button, so you can trigger the color change yourself by pressing the button.

Luis
11-29-2002, 03:29 PM
What i really whant is an dynamic menu, wich on release will make move in front of of and give a few links options. When click in wich of them, the color of that mvie will change and get hide again. Imagine the Dock on OS X or Windows System, every time you click on it, it will hide again and get a new color.
Maybe i should make an example no!!!!!!!

Luis
11-29-2002, 04:47 PM
I made an example for what i'm thinking of, i'de apreciate comments and how should i make this menu change color.

snapple
11-30-2002, 03:19 AM
Luis,

You can do exactly what you want (i think, i am slightly confused by your question). All you have to do is have an invisible button inside an MC within your menu, and on rollOver of that button - change the color of the MC in which it resides and on rollOut back to its orgional hexi code. If you have that for each catagory, then each section on your menu will change color. All you have to do is use the code i have already given you.

Should do the trick

snapple :)

Luis
12-02-2002, 11:01 PM
Ok Snapple,
I'll construct the all fla, experimenting the best design lay-out; motion graphics, and then when i see thatīs it, i'll ask here for for a few improvements. You all may know that there is a process that we may follow, to get the public target profile, studying the best design and then work the "motion graphics"(experimental sense). I think those are one of the few principles to make an honest work, not to copy, to learn with others and use it to improve our self.
For a while, iīve been seeing some very interesting stuff and here at Portugal the stuff that you can find, still a bit of poor or amadorish(my opinion).
See you soon,
Cheers