Archive for October, 2012

Masking The Images On Action Script Using Flash cs4

Step1: open a new flash file. Set the width to 465 pixels and the height to 232 pixels. And set frame rate to 24fps.

image-2130

 

 

 

 

 

 

 

Step 2: By using the rectangle tool draw a rectangle. And import the image for background (file ->import -> import to stage) set as background image.

image-2131

 

 

 

 

 

 

 

Step 3: Now, we need to place the buttons on left-side of the background image to perform action controls. Import the images from file menu. Place 4 buttons as figure shown below

image-2132

 

 

 

 

 

 

 

Step 4: Name the buttons for its relevant actions as shown below

image-2133

 

 

 

 

 

 

 

Step 5: To convert the image into a MOVIE CLIP (Movie Clip Symbol) called “background”, by pressing F8.

image-2134

 

 

 

 

 

 

 

 

 

 

 

Step 6: Now we need to mask the feature for visually cropping display objects within a shape as image shown below.

image-2135

 

 

 

 

 

 

 

 

 

Step 7: To convert the image into a MOVIE CLIP (Movie Clip Symbol) called “background”, by pressing F8.

image-2136

 

 

 

 

 

 

 

 

Step 8: From the cropping image to mask the layer and perform some actionscript towards the masking as image shown below

image-2137

 

 

 

 

Step 9: The image should now be masking the image, as shown below.

image-2138

 

 

 

 

 

 

Step 10: create a timeline to demonstrate the following function.

image-2139

 

 

 

 

Step 11: now we need to focus on second button i.e. mask. The process involves creating a shape and applying it to the “mask” property of another display object.

image-2140

 

 

 

 

Step 12: Masks can stay stationary while the object is being masked move or masks can animate above the object to create transitions and special effects as shown below

image-2141

 

 

 

 

 

Step 13: Now, create a new MOVIE CLIP (Insert > New Symbol) called “thumb0” and create 2 layers called “image” and “mask”. Drag the thumbnail thumb_0 on to the “image” layer, placing it at the position shown below.

image-2142

 

 

 

 

 

 

 

Step 14: then the image will mask the two layers with the movie clip that has been shown in the following image.

image-2143

 

 

 

Step 15: Right click on the “mask” layer and chose “mask”.

image-2144

 

 

 

 

 

 

 

 

 

Step 16: On the mask layer two layers have combined to perform the mask function as figure shown below.

image-2145

 

 

 

 

 

 

Step 17: Then the image Holder MC and delete the image Movie Clip inside of it. This is because we will be adding the image dynamically with action script.

image-2146

 

 

 

 

 

 

Step 18: Then the image Holder MC and delete the image MC inside of it. This is because we will be adding the image dynamically with action script as shown below.

image-2147

 

 

 

 

 

 

Step 19: When all the thumbnails have been added, go back to the Movie Clip and give the thumb Holder Movie Clip the instance name “background”.

image-2148

 

 

 

 

 

 

 

Step 20: Now we need to drag the mask on the right window. By using this drag mask we can able to drag the mouse cursor on the screen as figure shown below.

image-2149

 

 

 

Step 21: Now we need to make spiral movie clip on the right window to mask the two given layer as the figure shown below.

image-2150

 

 

 

 

 

 

 

Step 22: To create the mask frame to function the mask frame on the layer style as figure shown below.

image-2151

 

 

 

 

 

 

 

Step 23: To rotate the thumbnails with action script, the thumb Holder MC will be rotate so that each thumbnail doesn’t have to be rotated individually. Setting the registration point to the center makes sure the MC will rotate from the center. Press F8 to perform the action as figure shown below.

image-2152

 

 

 

 

 

 

Step 24: Setting the registration point to the center makes sure the MC will rotate from the center. Press F8 to perform the action as figure shown below.

image-2153

 

 

 

 

 

 

Step 25: Last layer to perform no function to be done to make the screen idle.

image-2154

 

 

 

 

 

 

 

Step 26: Now we will use some action script. To make the thumbnails function and to rotate them around the main image.
Code 1:

image-2155

 

 

 

 

 

 

 

 

 

 

 

code 2:

image-2156

 

 

 

 

 

 

 

 

 

 

 

 

Code 3:

image-2157

 

 

 

 

 

 

 

 

 

Code 4:

image-2158

 

 

 

 

 

 

 

 

 

 

 

 

Code 5:

image-2159

 

 

 

 

 

 

 

 

There are three types of masks which is displayed above flash file. Click the buttons to see the different effects.

Tags: , , , , ,

Friday, October 26th, 2012 Flash, web design No Comments

Lightening And Masking Techniques Using Flash


Step 1: open a new flash file. Set the width to 500 pixels and height to 300 pixels. Choose window -> properties from main menu bar, the properties panel is displayed.
Step 2: choose the Edit button under the properties tab to display the document settings window. Set the width to 500px and height to 300px and click ok button to set the stage size.

image-2099

 

 

 

 

 

 

 

 

step 3: Choose file -> import -> import to stage from the main menu, the ALIGN panel will be appear as like the figure below.

image-2100

 

 

 

 

 

 

 

Step 4: select the image and then select the Align to stage checkbox from the ALIGN panel. And select the second button from left under the ALIGN and the distribute area. Image will be displayed to stage.
Step 5: Then convert the images into symbol, choose Modify -> Convert to Symbol from the main menu bar, the Convert to Symbol window is displayed; as shown in Figure below. Rename the movie clip as car and choose the OK button.

image-2101

 

 

 

 

 

Step 6: select the car movie clip, and then choose Window -> Properties from the main menu bar to display the PROPERTIES window. Maximize the COLOR effect tab and select Advanced from the Style drop-down list. Enter the values as shown in the figure below.

image-2102

 

 

 

 

 

 

 

 

Step 7: Now select the movie clip and expand the FILTERS tab from the PROPERTIES window and add Blur filter to it with the values as shown below.

image-2103

 

 

 

 

Step 8: After adding the properties, the car movie clip will appear as shown in Figure below. Now set the background effect for the car, and then rename the layer as background effect.

image-2104

 

 

 

 

 

 

 

 

Step 9: Create a new layer and name it as blending, and then drag the car image from the library, place it exactly over the stage area. Make it as a movie clip symbol with the name car-blending.
Step 10: Maximize the DISPLAY tab to select Hard Light blending option from the Blending drop down list. Before that make sure, whether PROPERTIES panel is displayed and the car-blending movie clip is selected.
Step 11: maximize the FILTERS tab and add the Glow filter to the car-blending movie clip. To get the desired effect set the parameters in the FILTER tab.

image-2105

 

 

 

 

 

 

 

Step 12: For the Color parameter in the Glow filter type use the hex value as #462953.
Step 13: On adding the glow filter to the car-blending movie clip the car on the stage area will be displayed as

image-2106

 

 

 

 

 

 

 

 

 

Step 14: Create a new layer with the name lightening, and then choose Insert -> New Symbol from the main menu bar to create a new symbol. And then rename the new symbol to lightning and set the symbol type to Movie clip and choose the OK button. Now a blank new movie clip is created.
Step 15: Choose the Brush Tool from the toolbar and create some brush strokes in the stage area as shown below

image-2107

 

 

 

 

 

 

 

Step 16: Now, set a new keyframe on frame 7 and create some brush strokes as like the figure shown below.

image-2108

 

 

 

 

 

 

 

Step 17: Now, set a new keyframe on frame 15 and create some brush strokes as like the figure shown below.

image-2109

 

 

 

 

 

 

 

Step 18: Now, set a new keyframe on frame 22 and create some brush strokes as like the figure shown below.

image-2110

 

 

 

 

 

 

 

 

Step 19: Now, set a new keyframe on frame 29 and create some brush strokes as like the figure shown below.

image-2111

 

 

 

 

 

 

 

 

Step 20: Now, set a new keyframe on frame 29 and create some brush strokes as like the figure shown below. We can also add yellow color as the stroke color.

image-2112

S

 

 

 

 

 

 

tep 21: Now, set the shape tweening between the all the keyframes. Then create a new layer, and then create random strokes which created on above with two colors with the position of the keyframes exactly at the same position and add shape tweening between the keyframes. The timeline is shown below.

image-2113

 

 

 

Step 22: Now, add Blur Filter to the movie clip in the PROPERTIES panel and set the Blur X and Y values to 10 and Strength to High. Go back to the main stage and create a new layer. Create a blank movie clip with the name white strokes.
Step 23: Select the Rectangle Tool from the main menubar and create 5 rectangles randomly. Add linear gradient to it in the sequence transparent, white, and transparent, and then arrange them like a figure as shown below

image-2114

 

 

 

 

 

 

 

Step 24: Press F6 to create keyframe. Rearrange the rectangle streaks as shown below

image-2115

 

 

 

 

 

 

 

Step 25: Press F6 again to create keyframe. Rearrange the rectangle as shown below.

image-2116

 

 

 

 

 

 

 

Step 26: Now, Go back to the main stage area and press CTRL + T to activate the TRANSFORM tab. set the rotate value to 20 degrees.
Step 27: Then, create a new layer and rename it as mask. Now create a sketch the image that is shown in the Figure below such that the car image can come exactly in between it.

image-2117

 

 

 

 

 

 

 

 

 

Step 28: Next, make sure that the layers are placed exactly in its position as shown below

image-2118

 

 

 

 

 

Step 29: Next, select the layer named mask and right click over it and choose the Mask option from the flyout to mask the underneath layer. Publish the file by pressing CTRL + ENTER to get the animation effect as like below

image-2119

 

 

 

 

 

 

 

 

 

Step 30: Finally we animate the car to get more life into the animation.

Tags: , ,

Friday, October 12th, 2012 Flash, Photoshop, web design No Comments
Request a Free SEO Quote