How to hide a button on layer below other object so that the button is not clickable?
Hello everyone,
I am making the transition from Flash/AS3 to HTML5 Canvas and there is a technique that I often used with layering in Flash that I am unable to figure out in HTML5. Basically– I have 10 buttons on the stage, and when each button is clicked, a separate movieclip plays which takes up the majority of the stage. I only want one movieclip to be able to be played at a time, however all buttons are visible on the screen at all times. In Flash/AS3, I accomplished this by simply creating layers, and putting the buttons on the bottom layer, and putting the movieclips on the top layer so that when one movieclip plays, it essentially covers up the other buttons so that they can not be clicked until the movieclip finished and faded out of the screen. I am trying to do this same thing in HTML5 Canvas and it seems that no matter what layer the buttons are on, even if there is a movieclip covering them up on a higher layer, the buttons remain clickable (through the movieclip). Is there a way I can cover up a button so that it is not clickable? Thanks...
