Quick quote

close

Please do not contact Neubreed offering recruitment OR outsourcing services

To request a call back to discuss your project, please complete this form.

Alternatively, please call: (02) 8007 0218

To prevent automated spam submissions leave this field empty.

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