1 Reply Latest reply on Aug 28, 2006 5:17 PM by Craig Grummitt

    stick function help

    dc12 Level 1
      Hi,
      I am using the code below to deactivate my button "menu_one_mc" when you are on that button. I think this code is working for this purpose, but is causing a problem elsewhere on the site.
      Is there another way to "stick" my buttons?
      Thanks!

      menu_one_mc.onRelease = function() {
      stick("menu_one_mc");
        • 1. Re: stick function help
          Craig Grummitt Level 3
          what is stick()? have you defined a function? if so, show what you have inside this function. and please clarify exactly what you want - you say you want your button to stick or deactivate - by that do you mean you want the button to no longer react to any user interaction? you also say "when you are on that button" and then show your code with onRelease? did you actually mean to say when the user clicks(ie releases the mouse button) on that button?

          ok assuming you want to disable a button when the user clicks it, the following code should suffice:

          menu_one_mc.onRelease=function() {
          this.enabled=false;
          }