It depends which ActionScript version do you use. To giving links to the images or the buttons are different in AS2 and AS3. Let me explain.
First, you need to import your graphics to your flash movie or you need to create in Flash or the other programs. If you already made your graphics in the Flash; skip the import section. After you made your graphics; follow the File->Import->Import to Stage path in Flash and add your graphics to your flash movie. Then select entire image with selection tools and hit F8. This will open the "Convert to Symbol" popup. Give a name your symbol and select the symbol type to "button" using type dropdown menu and hit OK. After you convert your graphics to a button, place your button wherever you like and if you want to rotate your button use Free Transform Tool or just hit Q. Everything is good now. But here is the differences.
If you use AS2;
1- Click your symbol and hit F9 to open the action panel
2- In action panel write the following codes
on (release) {
getURL("http://www.google.com","_blank");
}
3- Save your Flash Movie and hit F12 to publish your movie.
If you use AS3;
1- Click your symbol and open the Properties Panel.
2- In Properties panel you will see the "<Instance Name>" section, click there and give your symbol a name. For example, myButton_btn.(You will use that name in the Action panel... )
3- Then click anywhere on the screen to deselect your symbol.
4- Hit F9 to open the Action Panel.
5- Write the following codes,
myButton_btn.addEventListener(MouseEvent.CLICK,Link);
function Link(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.google.com"), "_blank");
}
6- Save your flash movie and hit F12 to publish your movie.
That's all.
I hope, it helps to you...
This post has been edited by knightrider862: 07 November 2009 - 01:48 PM