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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I link a banner to a url? 3

Status
Not open for further replies.

gxydas

Programmer
Jan 15, 2005
76
0
0
GR
Hi all,

I'm new in these things and I have a simple question (I guess).
I've made an advertisement banner with text and button symbols. The question is how could I redirect the user to a url when he/she clicks everywhere on the banner.

Thanks anyway
 
Thanks boys it worked but the mouse pointer does not change when it moves over the banner (in i.e.).
 
This will do:

[tt]//
this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.beginFill(0x000000, 0);
mc.moveTo(0, 0);
mc.lineTo(Stage.width, 0);
mc.lineTo(Stage.width, Stage.height);
mc.lineTo(0, Stage.height);
mc.lineTo(0, 0);
mc.endFill();
mc.onRelease = function():Void {
getURL(" "_self");
};
//[/tt]

Transparent Button/MovieClip would be easier for you perhaps!? This is cooler though!

Kenneth Kawamoto
 
Thanks Kenneth Kawamoto
Where should I place this code?
Should I use a transparent button symbol and put the code on the first frame?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top