How To Make Buttons In Flash

Table of contents:

How To Make Buttons In Flash
How To Make Buttons In Flash

Video: How To Make Buttons In Flash

Video: How To Make Buttons In Flash
Video: Adobe Flash Tutorial: Basic Button (ActionScript 2 u0026 3) 2024, December
Anonim

Modern technologies have significantly diversified the interface of various resources on the network. Menu flash buttons decorate any site, adding a certain flavor to it and increasing its functionality.

How to make buttons in flash
How to make buttons in flash

It is necessary

  • - PC with installed Windows operating system and Internet access;
  • - Adobe Flash program.

Instructions

Step 1

Using slightly different color fragments, prepare in.

Step 2

Click the "Import" button in the "File" menu, activate the "Import to library" command and import the two prepared files into the data library. Move the loaded images to the workspace, press the F8 key and rename one of them. Select "Movie Clip" in the "Type" section. Place the second picture on the work area and rename it, specifying the same parameter in the "Type" section.

Step 3

Type the required text on each button and create a new one by pressing the key combination Ctrl + F8. In the "New Symbol" window that opens, enter a name for the future button and select the "Button" type. Copy the Movie Clip of the originally edited picture to the workspace of the created button.

Step 4

Use the keyboard shortcut Ctrl + F8, create a new Movie Clip and copy the result to the work area. Prepare a layer and copy the Movie Clip from the second image. In the right-click menu, activate the "Insert Frame" option and create a frame on the first layer. In the context menu select "Insert Key Frame" and repeat the same operation on the next layer.

Step 5

Select the prepared key frame and go to its settings. Click on "Style Alpha" in the "Color Effect" section and set the value to "0". Set the "Classic Motion Tween" to the first frame of the layer. Open the button object on the Stage and go to Actions. Paste the following code into a free field: on (release) {getURL ("aboutme.htm", "_self", "GET"); }

Step 6

Set a name for the button in the settings. Return to the first scene, copy the Movie Clip, select it and open Actions. Enter the code where the value "sim_btn" matches the name of the button you created: onClipEvent (enterFrame) {if (go) {nextFrame (); } else {prevFrame (); }} onClipEvent (load) {var go; stop (); sim_btn.onRollOver = function () {go = true; }; sim_btn.onRollOut = function () {go = false; }; } Open the File menu, go to the Export movie section and export the button you created.

Recommended: