7 Replies Latest reply on Oct 6, 2016 12:36 PM by mlb172

    Using Javascript to Change a Button's Color

    mlb172 Level 1



      I'm trying to change a button from blue to red when it is clicked.


      The button is called myShape.


      I tried:


      this.myShape.style.color = "FF0000";


      but no go.


      I also tried just setting the myShape as a movie clip instead of a button but no go.


      The button function is working as I have an alert set to trigger when the button is clicked.