4 Replies Latest reply on May 25, 2010 8:35 AM by Ned Murphy

    Adding function to existing actionscript

    seanmc81 Level 1

      I'm trying to add a function to some existing ActionScript, but am having trouble figuring out what code to add. The image(s) already have a rollover function, but I'd like to add the option of when the button is clicked, it takes you to a new URL. Should be a simple fix, right? But I stink with ActionScript.

      Here's the bit of code:


      d1_mc.onRollOver = function() {
      mcfadeTo(t1_mc, 100);
      mcPlay(this, 0);
      d1_mc.onRollOut = d1_mc.onReleaseOutside=function () {
      mcfadeTo(t1_mc, 0);
      mcPlay(this, 1);