all groups > flash ad development > august 2006 >
You're in the

flash ad development

group:

Rotation Ads


Rotation Ads Tim A. Setliff
8/18/2006 3:07:40 AM
flash ad development:
Hi - Thanks in advance for any help.

I'm have a section on the page for sponsers. I want to have a sponsor show
for a 5 seconds and then change to another sponsor for 5 seconds, then
change again. I know how to do this in a movie clip. The problem is the
code to getUrl.
Depending upon which sponsor is showing, I want to have code that will get
the url of the visible sponsor.

I see web sites that have ads that change, you can click on the ad and go to
the corresponding web site. My project is all flash, how does one do the
coding to get the correct url.

Thanks,
Tim

Re: Rotation Ads aniebel
8/18/2006 12:10:29 PM
What method are you using to rotate the ads? You could just make each banner
separate movieclips then call the URL like so:

banner1_mc.onRelease = function() {
getURL("http://www.someplace.com", _blank);
}
banner2_mc.onRelease = function() {
getURL("http://www.someotherplace.com", _blank);
}

OR...

you could create an invisible button if you have these mcs rotating on a
single timeline. Then you would put that invisible button over each banner,
each one separated by keyframes and change the instance name for each one. Then
you could use the same code above except change "banner1_mc" to something like
"banner1_btn".
AddThis Social Bookmark Button