So first we have to prepare some movieclips, the first one will be the movieclip containing the object we want to animate, so make some object on the stage, I just made some weird object, right click it and convert it to a movie clip symbol. |
49 Select Window > Actions to open the Actions panel. Insert the following ActionScript code in the panel:
|
|
|
|
|
|
|
12 Free Online Quiz Creators for Teaching Online Last post by: Sunnyme Date: 01.10.2009 06:26:27
|
|
|
This entry was posted on 12:31 PM and is filed under Basics , On Enter Flash . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. |
|
|
|
|
|
Tutorial Flash 8. In the following tutorial i going to explain how to use the Mixer color panel, an animation will also be made where the alpha color of a figure will be changed “shape”. All the animation was carried out in the Scene.
|
In this tutorials you will learn how to change a MCs (movie clip) color through actionscript. I am using flash 8, but flash MX 2004 will work fine as well.
|
|
 Now to pick a color. I've seen many a coloring book made in flash where the creator makes 10 MovieClips, assigns certain code to each MovieClip, limiting the colors the user can choose. Why go through all that work? Listed in the component panel - pallette for some of you - there is a ColorPicker component. Yessss!! There's one already made! Step one is already accomplished! Wow that was quick...sort of.
|
Open a new Flash document and import an image to the stage by clicking on File > Import > Import to Stage.
|
1. I started with a colorful flower image opened up my photoshop and made a black and white image so I had both a colored one and one in black and white, with the excact same width and heights.
|
|
Example Download Step 1 - Create The Effect |
|
|
|
|
Now we have to make the buttons use this function. Select the first button. Insert an 'evaluate' action (ESC+ev), and type the name of the function, in my case 'customcolor()'. In () type the code of the color for that button which you've writen, with 0x in front of it. For my first button i've typed 'customcolor(0x000000)'. The parameter 'thecolor' from the function will be in this case 0x000000(black). Do this for all of the buttons, and in () type the code for the colors. I have 0xFF0000(red), 0xFFFF00(yellow),0x0066FF(blue), 0x663333(brown),0x00FF00(green). That's all. You've finished. The final script shoul look like this: for the frame: ???????function customcolor(thecolor) { ?????????????????????????????????something=new Color(background); ?????????????????????????????????something.setRGB(thecolor); ?????????????????????????????} |
|
12 Free Online Quiz Creators for Teaching Online Last post by: Sunnyme Date: 01.10.2009 06:26:27
|
12 Free Online Quiz Creators for Teaching Online Last post by: Sunnyme Date: 01.10.2009 06:26:27
|
|
|
The other method involves using Flash's color picker tool. When you press the line or background color menu in Flash 5's toolbox on the left, you will see a small color picker that follows your mouse pointer. Click on any color that you want the value for, and Flash will display the appropriate hexadecimal value in the color menu. In case you don't know what I am talking about, the following image should help: |
|
The example below will show you how your final animation may look: |
|
Want to make your digital color photos come to life? This technique, used by the professionals, will give those photos the "pop" they need for web and for print…easy, quick, and fun! |
|
|
|
|
Selection (arrow) Tool : It is the most used tool among all. Its main use is to select objects, it allows selecting the borders of the objects, the fillings (with only one click), the borders (with double click), zones on our choice... Moreover, its adequate use can save time of our work.
|
|
|
|
|
- Actions (Top Layer) - ActionScript layer. - Light Mask(Second Layer) - Light Source. Actually will be set as a Mask later on in the tutorial. - Text (Third Layer) - Text Layer (Color or B&W) - Picture (Bottom Layer) - Picture Layer (Color or B&W) |
Coloring in Flash: the Amazing Vin Rowe Method (aka the Decent Vin Rowe Method) lays out a simple and quick way to turn hand-drawn line art into colored vector art. I've used this for my illustration and animation with great results, and I thought I would pass it along. I remember first trying computer coloring years ago and how frustrating and labor-intensive it was, so my hope is that this will make it easier for someone out there. Attention illustrators, cartoonists, comic book folks and other artists: read carefully, and let me know what you think! -vin@vinsdojo.com
|
A general rule of thumb is: if possible use a web safe colours. If isn't possible don't worry. As time goes by the graphics cards (which controls the screen colours) are getting better and better and using web safe colours is not as critical as it once was. |
OK. Now, open new Layer and draw color squares. Make 4 sets, for every part we have. You can choose different colors for different sets if you want. I have decide to just copy/paste first set. It's very important to write down color value for every single color. |
|
When you do this you should notice a small little dialog box (seen above) appear next to the code just place into it. This is a neat thing that macromedia added for Flash users (if you do other codeing i.e. C++, J++ (Java)) you understand what this is. This is called a "Code Hint". It helps the coder do the code correctly. so. Heres what its asking or hinting for you. |
Using sliders to set colour in ActionScript is reasonably easy thanks to Bitwise Operators. The question is what is a bitwise operator and why do you need to use it? |
The aim of the tutorial is to learn how to create a colouring-in book in flash. Included below is all the actionscript you need to create your own paint set. |
This tutorial covers the creation of a masking effect where different colored shapes will appear to pass through a given object. In this example we will be using text for the object. The final object product should look like this: |
It isn't desirable to mislead us, Flash isn't a program of graphic design, but its power in this field is almost as great as these programs. We are going to see how use every drawing tool effectively. |
1. Choose "Rectangle" tool and draw a small rectangle (about 18 x 18 pixels, hold CTRL to draw both edges equal) 2. Change fill color to purple 3. Choose "Item" > "Actions" > "OnClick" and enter the following ActionScript code: |
Now you need to add the scripts to the colour palettes. Starting at the top left colour palette add the following script to the shape. |
A general rule of thumb is: if possible use a web safe colours. If isn't possible don't worry. As time goes by the graphics cards (which controls the screen colours) are getting better and better and using web safe colours is not as critical as it once was. |
|
|
|