Advanced flash button as image with url

Date: 18.7.2007, 17:24    Total views: 103008

See this lesson and learn how to create advanced flash button using the image. This button you can apply for any web site. We will also apply on it url code. To create this lesson you have to use action script. You will also learn how to apply filter effects on the image, how to convert it into a Movie Clip Symbol and more.



Example:



Step 1

Press Ctrl+J key on the keyboard (Document Properties) and set the dimensions of your document as whatever you like. Select any color as background color. Set your Flash movie's frame rate to 40 and click ok.



Step 2


Find any image that you will be use for this example. You can also, if you like, downlad my image.



Step 3

Go back in flash. Choose File > Import > Import to Stage, and import the picture that You want to use for this example.

Step 4

While the image is still selected, press F8 key (Convert to Symbol) to convert that image into a Movie Clip Symbol.



Step 5

While the new made Movie Clip (image) is still selected, go to the Properties Panel (Ctrl+F3) below the stage. On the left side, You will find the Instance name input field there. Call this Movie Clip "image".



Step 6

Double-click on the movie clip on stage with the Selection tool(V).You should now be inside the Movie Clip.



Step 7

While the picture is still selected, press again F8 key (Convert to Symbol), to convert this image again into a Movie Clip Symbol.



Step 8

Click on frame 10, and 13 and press F6 key. Then, go back on frame 10, take the Free Transform Tool (Q) and decrease the image a little.

Step 9

After that, take the Selection Tool (V) and click once on the image to select it. Then, go to the Properties Panel (Ctrl+F3) below the stage and click on Filters tab. After that, click on the plus icon and select Adjust Color filter. Make the adjustements as follows:

1. Brightness: 27
2. Contrast : 50



Do that also for frame 13.

Step 10

Take the Selection Tool (V) and select layer 1.Then, go again to the Properties Panel (Ctrl+F3) below the stage. On the left side you will see Tween drop down menu . Select Motion on it. See the picture below.



Step 11

Go back on the main scene (Scene 1).

Step 12

Create a new layer above the layer 1 and name it invisible button. Then, select the invisible button layer and create the invisible button over the image. See the picture below.



Step 13

Take the Selection Tool (V) and click once on the invisible button to select it. Then, go to the Action Script Panel (F9) and enter this code inside the actions panel:

on (rollOver) {
_root.mouse_over_image = true;
}

on (rollOut) {
_root.mouse_over_image = fstartlse;
}

on (release){
getURL("http://www.flashfridge.com/");
}

Step 14

Create a new layer above the invisible button layer and name it action.

Step 15

Click on the first frame of layer action, go again to the actions panel and enter this code inside the actions panel:

_root.image.onEnterFrame = function() {
if (mouse_over_image) {
_root.image.nextFrame();
} else {
_root.image.prevFrame();
}
};

Test your movie (Ctrl+Enter).

Enjoy!

Downlaod source file (.fla)

  Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!
Share
ShareSidebar