A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] AS2 Clicktag and Rollover questions

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    23

    resolved [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.
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Mar 2010
    Posts
    23

    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);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center