Hello All;
Ok, what I have is the following.
A symbol named ButtonStage
Within that Symbol, there are 4 Buttons.
If you click on the CORRECT button, then I need to disable ALL other buttons.
In the Stage, I have this
CompositionReady
sym.buttonState1 = function(){
sym.getComposition().getStage().getSymbol("ButtonStage").getSymbol("ButtonOne").unbind("cl ick");
}
In the Symbol, I have this under the CORRECT button
ButtonThree - OnClick
sym.getComposition().getStage().buttonState1();
However, it is not working. I can still click on the other button(s).
Are there any idea's on this one?
Thanks
Wayne
Try hiding your other buttons on the click using .hide();:
in your global function try this instead of unbind:
sym.getComposition().getStage().getSymbol("ButtonStage").getSymbol("ButtonOne").hide();
Although it may be best to put this in your click code rather than compositionReady unless that code needs to be accessed by something else using your global function.
Using the Hide on the click itself, did the job.
I have a cover over each of the buttons, that the click action goes to.
So, I was able to hide it, and the button becomes unclickable.
sym.$("ButtonOneCover").hide();
The downfall of hiding the Cover is that the Text becomes selectable.
As I do not want to hide all the elements.
Thanks once again ddhayles for provided something that was right there in front of me.
But I could not see it.
Wayne