1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 21: Flash for Web Design: getURL Command

By , About.com Guide

7 of 7

Specifying Parameters

Now you need to set the command's parameters. In the URL field, put in the URL (web address) of where you want the link to go; then, just like in the text links in the last lesson, you're going to specify a target window. I've chosen _self again so that it opens in the same window.

If we were gathering variables in a field, you would specify how to send them in the next field, but we're not; that's for a more advanced lesson later on. So your code should look something like this:

on (release) {
getURL("http://animation.about.com/od/flashanimationtutorials/", "_self") ;
}

Again, if we were gathering variables, the variable method would be specified after the window, separated by a comma--but since we're not, it's left blank. But for now, this is finished; you just need to repeat the action on your other buttons. Take a look at how it works here.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Animation 21: Flash for Web Design: getURL Command

©2009 About.com, a part of The New York Times Company.

All rights reserved.