4 Replies Latest reply on Mar 19, 2015 7:07 AM by resdesign

    Pathing variables in Edge Animate

    JohnnyN

      I have this variable on a click event

       

            Symbol.bindElementAction(compId, symbolName, "${Dot01}", "click", function(sym, e) {

                   var myBullet1 = 1;

                }

       

      I'm trying to use the variable in an if statement on a mouse out event but I'm not sure how to target it.  The alert is my attempt to find the target comes up undefined.

       

      Symbol.bindElementAction(compId, symbolName, "${Dot01}", "mouseout", function(sym, e) {

       

               //alert(sym.getSymbol("Dot01").getSymbol("Dot1").myBullet1);

               if(myBullet1!=1){

               sym.getSymbol("Dot01").getSymbol("Dot1").stop("one");

               }