2 Replies Latest reply on Feb 19, 2013 8:49 AM by Gabri3l1978

    Count up/down symbol help

    Gabri3l1978

      Need some help about coding a symbol

       

      This is a count up from 0 to 63 symbol and i'm not good at coding .

      I want to play a certain label after the count-up has stopped.

       

       

      Symbol.bindTimelineAction(compId, symbolName, "Default Timeline", "complete", function(sym, e) {

         var count = sym.getVariable("count");

         sym.setVariable("count", count +1);

         sym.play("loop");

       

       

      });

      //Edge binding end

       

       

      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {

         var count = sym.getVariable("count");

         sym.$("Text").html("" +count);

         if (count ==63){sym.stop();

         }

       

       

      });

      //Edge binding end

       

       

      Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {

            sym.setVariable("count", 0);

       

       

      });

      //Edge binding end

       

      I have a trigger to stop the scene timeline:

       

       

       

      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1074, function(sym, e) {

         sym.stop();

         // insert code here

       

       

      });

      //Edge binding end

       

      If i delete the stop trigger the symbol and the rest of the animation overlap....

       

      HEEEEELPPPPP!!!!!!