Well I think you should switch over to actionscript 3. Just try it and see if you like it.
You can change what actionscript you are using in the properties tab --> actionscript setttings.
And since your banner is on the main timeline, just make a new layer above or under it, and write...
this.Loops = 0;
addEventListener(Event.ENTER_FRAME, Banner_Loops);
function Banner_Loops(e:Event){
if (this.Loops==3){
stop();
}}
on the first frame. Then make a blank keyframe on the same layer at the end of your loop and write..
WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.
I followed instructions from the publisher on how to set the following click through counter/link. Undortunately I had to put the code in an instance "link_btn" of the button itself to make it work.
on (release) {
getURL(_level0.clickTAG, "_blank");
}
Unfortunately I am being kicked out of the building I am freelancing in. I will check back in 1 hour. Any Help is greatly appreciated. Or if i should go back to AC2 let me know.
thanks! Both solutions worked but I think I will need to stay with AS2 because of the problem with the other button in the movie when going to AS3. (The code the publisher provides was in AS2)
Could someone explain me how to do it in Action script 2?I'm a super newbie in programing. Actually, i'm not a programmer but I have to do an animation banner which I did, but I need to limit the loop to 3 times, create a close button and a clickTAG to follow the instructions of the site in order to accept my banner. (Example: www.imovelweb.com.br - Scroll down to see the banner called footer)