How To Make A Link In Flash

Table of contents:

How To Make A Link In Flash
How To Make A Link In Flash

Video: How To Make A Link In Flash

Video: How To Make A Link In Flash
Video: Adobe Flash - Adding a hyperlink to a button 2024, December
Anonim

After creating a banner in Flash, it must be inserted into the site and displayed as a link. However, standard HTML markup tools do not allow this. Therefore, to create a link, you need to write a small code in the Action Script language directly in the flash file itself.

How to make a link in flash
How to make a link in flash

It is necessary

Adobe Flash Professional

Instructions

Step 1

Open a flash file of.fla format in Adobe Flash Professional using the File - Open menu, or simply drag the banner into the utility window. If the application is not installed, download it from the official site of the Adobe developer and install it by running the executable file and following the instructions on the screen.

Step 2

Create a new layer on the banner with any name and move it to the top. To do this, click on the "Create Layer" button located at the bottom of the video duration scale. You can also use the menu "Insert" - "Timeline" - "Layer".

Step 3

Select the Rectangle tool in the left pane of the window. In the "Color" tab on the right side of the window, set a transparent fill and turn off the color of the border of the shape. Set the Alpha value to 0%. After making the adjustments, draw a rectangle of any size anywhere in the file, in the first frame of the topmost layer.

Step 4

Press the combination of Ctrl and I on the computer keyboard or go to the "Window" - "Information" menu (Window - Info). Select the rectangle by clicking on the first frame and moving to the area that appears. The shape size parameters must match the banner size, and the X and Y coordinates must be 0.0.

Step 5

Convert the type of rectangular area. To do this, press the F8 key and select the Button value. Then press the F9 button and select the first frame of the top layer. Write the following code:

on (release) {

getURL (“https:// site_address”, _blank);

}

Step 6

Save the changes made (File - Save). The flash link is ready.

Recommended: