Read this thoroughly explained, detailed flash lesson and see how to create advanced valentines flash banner using the action script code and some special flash tricks. Using this lesson, you will also learn how to import any picture into a flash stage, how to create instance name and much more. Let's start!
Step 1
First, save the valentine's picture below that we will use for this lesson as background.
Step 2
Create a new flash document
. Press Ctrl+J key on the keyboard (Document Properties) and set the width of your document to 300 pixels and the height to 281 pixels. Select any color as background color. Set your Flash movie's
frame rate to 33 and click ok.
Step 3
Call the current layer valentine's picture. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!
Step 4
Choose now File > Import > Import to stage (Ctrl+R) and import a valentines picture that you just saved in step 1 into a flash stage. While the picture is still selected, go to the Align Panel (Ctrl+K) and do the following:
1. Make sure that the Align/Distribute to Stage button is turned on,
2. Click on the Align horizontal center button and
3. Click the Align vertical center button.
Step 5
Create a new layer above the layer valentine's picture and name it valentines heart. After that, draw a heart shape like it is shown on the picture below!
Step 6
While the heart shape is still selected, hit F8 key (Convert to Symbol) to convert this circle shape into a Movie Clip Symbol.
Step 7
While the new made Movie Clip (heart) is still selected, go to the Properties Panel below the stage. On the left side, You will find the Instance name input field there. Call this Movie Clip heart. See the picture below!
Step 8
Select the Selection Tool
(V) and click once on the Movie Clip (heart shape) to select it. Then, go to the Action Script Panel (F9) and enter this code inside the actions panel:
onClipEvent (load) {
movieWidth = 300;
movieHeight = 281;
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) { this._x = -10+Math.random()*movieWidth; this._y = -5; } }
Step 9
Select the first frame of layer valentines heart, go again to the Action Script Panel (F9) and enter this code inside the actions panel:
for (k=0; k<30; k++) {
duplicateMovieClip(this.heart, "heart"+k, k);
}
We're done!
Test your movie and enjoy!
[Via flashvault]
Friday, July 9, 2010
// //
0
comments
//
0 comments to "Creating A Flash Banner Effect Within 10 Minutes"
Recent Posts
Search Medhley
Followers
Blog Archive
-
▼
2010
(85)
-
▼
July
(31)
- How To Create A Sparkling Animated Text in Photoshop
- Bas Relief Effect Using Photoshop’s 3D Tool
- Creating Modern photography menu Using Flash filte...
- Making A Vector-Style Woman Composition In A Easy Way
- With Simple Hand-Drawn We Can Create Vivid Themed ...
- Cheating with Visualization in Photoshop
- With Paint Brush Icon We can Create A Set of Digit...
- Full Workflow For Creating an iPhone Icon
- Romantic Heart Made Of Semantic Code
- Medhley.com has changed its Logo
- Easy To Create A Burger,First Aid Box,Briefcase Ic...
- Createting a Attractive Dynamic Nature Poster in ...
- Pathway Chalk Creation
- High Quality Beautiful Icon Sets
- Creative Digital Art Graphic Designing Photos
- More Than 100 Attractive And Amazing Text Designin...
- Creating A Sleek Audio Player Panel With Photoshop
- Easy Way To Create A Image Using Flash Effect Wit...
- 40+ Ideas for Creating Advertisement Design
- TOP 5 OFTEN VISITED WEBSITES!
- Easy Way To Create Shapes Using Pen Tools in Photo...
- Create Glassy Button in 5 Steps
- To Create A Powerful Flash Menu With Sound Effect
- Creating A Flash Banner Effect Within 10 Minutes
- Easy To Create Apple i Phone Modular With Photoshop
- Secret Shortcuts in Photoshop
- Create A Web 2.0 Website Template within half-an h...
- Ideas For Opening 404 Error Pages
- Pixelated Dead of the Night.Zombies Easily made wi...
- Marvelous Photo Stack Gallery with jQuery and CSS3
- Easy to Draw a Vector Dog Character in Illustrator
-
▼
July
(31)
Post a Comment