Neu blog

Creating a button in AS2

Submitted by mick on Mon, 30/11/2009 - 15:41
  1. Use a shape tool to create your button. If You're making a flash banner, the button will be the same size as the stage, and positioned at the top of the layers pallette
  2. Make sure your shape is selected, then press F8 (or Modify > Convert to symbol). Select Movie Clip and press OK.
  3. If you want the entire image to act as a button, like a Flash banner for example, make the button transparent by reducing the alpha to 0%.
  4. Double click on the stage. This will take you inside the movie clip to a new timeline. Click the black dot in the new frame, then hit the Actions tab. Inside the Actions tab, insert the following code:
    on(release){
    getURL("http://www.yourlinkhere.com.au");
    }
  5. Press Ctrl + Enter to preview your .swf and test the link.

Anonymous (not verified)

This is clearly not ActionScript 3.

mick

Ahhh you're right. As you'll see, the 2 is quite close to the 3 on the keyboard.

Thanks for the heads up ;)