Unbind nested Button within Symbol.
hello all;
ok, have following.
a symbol named buttonstage
within symbol, there 4 buttons.
if click on correct button, need disable other buttons.
in stage, have this
compositionready
sym.buttonstate1 = function(){
sym.getcomposition().getstage().getsymbol("buttonstage").getsymbol("buttonone").unbind("cl ick");
}
in symbol, have under correct button
buttonthree - onclick
sym.getcomposition().getstage().buttonstate1();
however, not working. can still click on other button(s).
are there idea's on one?
thanks
wayne
try hiding other buttons on click using .hide();:
in global function try instead of unbind:
sym.getcomposition().getstage().getsymbol("buttonstage").getsymbol("buttonone").hide();
although may best put in click code rather compositionready unless code needs accessed else using global function.
More discussions in Edge Animate CC
adobe
Comments
Post a Comment