One thing that all sites have are hyperlinks, and making them in HTML is nice and easy, and even easier is making hyperlinks in forums.
But have you ever wondered what it takes to make a hyperlink in Flash?
Ok I’ll show you how!
Creating a hyperlink is not too difficult, but it does require some effort until you get used to hyperlinking Flash!
Creating a Hyperlink:
The following steps will guide you in creating a hyperlink:
Create a new Flash document.
A new, blank Flash movie will be displayed.
From the Tools panel, click the Oval Tool and draw a circle in your drawing area.
Once the circle has been drawn, select the circle with your mouse pointer.

Once the circle has been selected, go to Insert then Convert to Symbol.
The Convert to Symbol dialog box appears.
In the Name field, give this circle a name.
I will call this circle "Hyperlink"
In the Behavior section, select the Button option.
Your Convert to Symbol dialog box should look like this

Press OK to close the Convert to Symbol dialog box.
The circle is now a button.
Right click on the circle and select Actions.
The Actions panel will expand for you to input actions.
From the Actions panel, click on the plus symbol ( + ) found near the middle of the panel.
Once you click the plus symbol, go to Actions then Browser/Network and getURL.
You will see the URL, Window, and Variables field displayed in your Actions panel.
In the URL field enter your link, but it must be the full address.
- Code: Select all
http://www.siriusgrafix.com
Click the Window field/drop-down menu and select _blank.
Save the file and preview the animation in your browser by going to File, Publish Preview and HTML.
Click on the button, and you will see a new browser window open.
ActionScript
If you’re one of those people that wants to skip doing all the options through the menus for the links then create your object and then when it’s selected use the following ActionScript and it’ll do the same.
- Code: Select all
on (release) {
getURL("http://www.siriusgrafix.com", "_blank");
}
What you’ll actually find is that the process using the menus creates this ActionScript!
Window States
There are a number of different states other than _blank that you could use in your hyperlink just as you do in HTML.
Here they are
_self
Loads the link in the current page or the current page in a Frame.
This is the default selection used by Flash to open any link
_blank
Loads the link in a separate browser window.
You selected _blank in the tutorial
_parent
Loads the link into the frameset file of a frame.
The frameset file controls all the frames, and setting the window to _parent will eliminate frames in the subsequent links.
As you may have seen, often times, links get loaded inside frames unintentionally.
Setting _parent will solve the misuse of frames!
_top
Loads the link on the top frame.
Enjoy!






