Article

Flash 101 - Part 4: Don't Touch Me

Page: 1 2 3 4

Click Me

Of course, a button which does nothing when clicked is a lot like a broken clock - useless. And the guys who created Flash knew this too - which is why they built in a whole bunch of "actions" that you can attach to your button. One of the most popular of these is the "Get URL" action, which directs the browser to open a new URL.

To attach the "Get URL" action - or any other action - to your button, right-click the button on the Stage, and select "Actions" from the pop-up menu. From the window that opens up, double-click the "Get URL" item in the Basic Actions section -- Flash will write some code on the right side of the panel, and display a couple of text fields at the bottom for you to enter the URL and the window name(if any).

730_image12

Once you've entered a URL, you can see how it works with the button below - it will open a new Web site in a new browser window.

In order to test actions in the Flash authoring environment, you need to make sure that the Control -> Enable Simple Frame Actions menu item is activated.

There are a bunch of other actions available as well, and I'll be exploring them next week. So stay tuned -- this is just getting interesting!

Note: All examples in this article have been tested on Macromedia Flash 5.0. Examples are illustrative only, and are not meant for a production environment. YMMV!

Copyright Melonfire, 2000. All rights reserved.

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Sponsored Links

Rate This Article

  • 1
    Poor
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
    Great

Comment on This Article

Have something to say?

Post A Comment

You need to be a member of the SitePoint Forums to comment on this post. Sign Up

Already a member? Post using your SitePoint Forums account: