You'll need to make an invisible button and set it to go to
your URL. To do this, create a new button and in the HIT frame
place a keyframe and put a rectangle in it that is the same size as
your banner. Leave the other states of the button blank. Then place
it on the stage over your entire banner. It will look like a
translucent teal rectangle. That will not show up when your banner
is published. It's there as a guide.
Give your button an instance name. For the purpose of
demonstration, let's say you name it "inv_btn".
Then create a layer called actions or as or actionscript...
whatever makes sense to you.. and lock it. This is where your
actionscript will go and locking it will prevent you from
inadvertantly placing anything on it. Select that layer and open
your actions panel. If you are using actionscript 2.0, type:
Hi there - Yes, I'm using Flash CS3 so I guess that I have
ActionScript 3. When I did what you explained though, I dropped the
ActionScript down to the 2.0.
I was able to get the button in there. I put it on a separate
layer. When you click the banner though nothing happens. I've got
two different Flash CS3 tutorial books and neither one covers this.
I would have thought that this would be quite common.
Hi there. I just copied and pasted your code and it worked
for me. Is your hand cursor showing up when you mouse-over the
banner? If not, make sure your button does, in fact, have an
BTW, using CS3 does not necessarily mean that you have to use
AS3. In fact, most host sites will not allow banners that have been
published for anything higher than Flash Player 7... which means no
AS3. If you are in control of the site that is hosting the banner,
you should have nothing to worry about, however.
icarecommunity, yes, you would assuming their site is set up
that way. You'll need to ask them what their specs are and if they
prefer you to hard-code the landing URL into the button
event-handler or do they want you to use a click tag. They may ask
you to use a click tag if they are returning statistics to you or
your client on click-throughs.