11 Replies Latest reply on Oct 8, 2012 5:26 AM by Eddie Ostrowski

    Restore a button with .off / .on

    eggertr Level 1

      Im playing around with a couple of symbols.

       

      I have a symbol called "button_cat_hover", I have a click state on that symbol that is:

      sym.getSymbol("cat_symbol").play(0);

      $(this).off(e);

       

      It plays the cat_symbol and disables my button_cat_hover. Everything works fine.

       

      Then I have another symbol called "restore_hover", and have a click state on that symbol, that is:

      sym.getSymbol("cat_symbol").stop(0);

       

      this works also fine. But I also want to add something like this: $("button_cat_hover").on(e); But that does not work?

      Basically turn back on my "button_cat_hover".

       

      Im really new to this stuff. Hopefully someone might have a good solution. Thanks!

       

      If you want to take a look here is my file:

      http://dl.dropbox.com/u/2093612/car_cat_cow_cry_new.zip