How to link via a button

February 27, 2010

How To

To go to a new Web page using Flash buttons as your navigation, put this script on a button in your FLA:
on (release) {
getURL(“http://flashconf.com/”);
}

Change the URL to match your needs. You can use a relative address instead of an absolute one.

You can add a target to the script, inside the parentheses. Add a comma and then the target name in quotes, such as “_blank” or “_parent.”

This is an easy technique, but remember that your user may not have the Flash plug-in installed, or may have an older version of the plug-in. In that case, the user may not see your buttons at all. Have you provided alternative navigation options?

, , , , , , ,

Subscribe

Subscribe to our e-mail newsletter to receive updates.

No comments yet.

Leave a Reply