Drupal website specialists. Call us about your project on (02) 8006 3402

Creating a button in AS2

Posted 30/November/2009 by neubreed
  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("https://www.yourlinkhere.com.au");
    }
  5. Press Ctrl + Enter to preview your .swf and test the link.