Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash banner

Status
Not open for further replies.

Koffee

Programmer
Nov 6, 2003
1
US
I have a Flash banner that will go on my site and it needs to be a hyperlink. Is there a way to just write that into the code, or do I need to add the link in Flash before exporting?
 
You would need to set it in the Flash movie itself.

Draw a rectangle shape (without border) covering the whole of your banner's area, on a top-most layer. Convert it to a button symbol. Edit the now button symbol, clearing all "states" except the Hit state.
Right-click it on stage and select actions to bring up the actions window...
Insert your link script in this manner...
Code:
on(release){
getURL("[URL unfurl="true"]http://www.google.com/",[/URL] "_blank");
}

Obviously replace google by your proper link!
You're done.



Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top