| Flash color selection widget- using color transform |
|
Our goal in here is to re-create the concept which we created on my previews article about color manipulation, and import a class called color transform to make a dynamic color selection, we will be using the layer mask that we created on my bitmap conversion tutorial and the same Toyota Aygo as our model. warning to all readers, I would not explain how to convert movie clip and such, I'm expecting that you are already familiar with those fundamentals. So let start the tutorial ^^. We need two objects here, the .EPS which contain our vector mask and the Toyota aygo.png which is the original image, and... what was that Aygo.png??.... oh I get it, it was a photoshop layer mask; which we used on our previews article, anyway just leave it there. Name our first layer ‘Toyota aygo', this will contain our original image which is Toyota aygo.png. and then create a new layer name it ‘color fill', grab your rectangular tool and cover the whole stage with a #330066 rectangle, then convert it to a movie clip, give a name and an instance name or ‘mc_fill'. Then select mc_fill, then on the property panel set alpha to 55% and change the blending mode to ‘add'. Then create a new layer name it ‘mask', drag our aygo.eps on stage and convert it to movie clip give him a name and an instance name of ‘mc_mask', then convert the layer to mask. (tip: holding down shift while draging an object on the stage will paste it on the center.) Now create another layer, name it ‘palette'. And create a small rectangle and convert it to a movie clip, name it ‘mc_green'. Of course I would ask you to change the fill color to green, alpha to 55% and blending mode to ‘add'. Then create a new layer call it ‘action'. This will be the layer where we will type down all actionscripts. Press F9 and type down the following:
You will have the same result as this one. Rollover your Mouse on the green palette.
Now that you have done the first one, you can repeat the process to make huge variety of colors.
Comments
(5)
written by kris , March 22, 2009
I got some problem with the white palette. how did you manage the #ffffff color transform?
the original color of our subject is white, so onRolloever instead of changing the color of our mc_fill, we will pull down the alpha to zero.
mc_fill._alpha = 0; will do the job. written by dan , March 27, 2009
I'm expecting you put this one to the next level by putting a bar instead of square palette.
|
- Photoshop Advance
- Web Design in General
- Photoshop Advance
- Cool Stuffs
- Photoshop Advance
- Photoshop Advance
- Photoshop Advance
- Flash Advance
- Cool Stuffs
- Flash Advance
- Web Design in General
- Photoshop Advance
- CSS Styling
- Photoshop Advance
- How To's
This is a Simple widget which enables the user to select the color for their chosen car, if you got in here without reading my previews articles on



























