1 Attachment(s)
[RESOLVED] AS2 Clicktag and Rollover questions
I'm creating a banner ad for Yahoo.com and am running into a conflict with the Rollover replay and Clicktag. Both are buttons on separate layers with the ClickTag on top. If the Clicktag button is on, the rollover (replay) button is ignored.
I'm wondering what changes I need to make, but I need to keep the AS2 out of the Clicktag button. Also, if I rollover and out quickly, the animation replays, when it should stop. Thanks for any help. I've attached my .fla CS4 for analyzing. :)
Yahoo specs of note:
- Animation can begin again on mouse over, but must stop immediately on mouse off.
- When building flash creative, please note that the expression box must be checked and the URL should say clickTag.
Solved: AS2 ClickTag and Rollover
Thanks to kglad on the Adobe Forums, I have the answer.
Remove all code from objects. Give both objects instance names (clickTag_btn and replay_btn). Be sure to name them in the "Instance Name" and not the "Instance of" section. Use the following code.
Actionscript Code:
clickTag_btn.onRelease=function(){
getURL(clickTag,"_blank");
}
clickTag_btn.onRollOver=function(){
this._parent.play(2);
}
clickTag_btn.onRollOut=function(){
this._parent.gotoAndStop(33);
}