Neu blog
Creating a button in AS2
Submitted by mick on Mon, 30/11/2009 - 15:41
- 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
- Make sure your shape is selected, then press F8 (or Modify > Convert to symbol). Select Movie Clip and press OK.
- 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%.
- 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"); }
- Press Ctrl + Enter to preview your .swf and test the link.
Anonymous (not verified)
Posted Fri, 12/03/2010 - 11:34This is clearly not ActionScript 3.
mick
Posted Fri, 12/03/2010 - 16:33Ahhh you're right. As you'll see, the 2 is quite close to the 3 on the keyboard.
Thanks for the heads up ;)