2 Replies Latest reply on May 6, 2013 4:18 AM by FlexAce

    BindTriggerAction To A Symbol Instance?

    FlexAce Level 1

      I have a symbol (digit) that has it's own timeline

       

      I can dynamicaly put a stop on it's timeline like this in compositionReady

       

           Symbol.bindTriggerAction( compId, "digit", "Default Timeline", 1500, function(sym, e) {

                sym.stop();

           });

       

       

      But I would like to just put the stop on one instance of the symbol on the stage

      This does not work

       

           Symbol.bindTriggerAction( compId, "InstanceNameHere", "Default Timeline", 1500, function(sym, e) {

                sym.stop();

           });

       

       

      Any ideas if it is possible?

       

      And is it possible to dynamicaly remove/undo a bindTriggerAction?

        • 1. Re: BindTriggerAction To A Symbol Instance?
          Zaxist Level 4

          this "digit" is symbol or its a div ?

           

          and can you explain more ? it's not clear for me, if you can put your project here it would be better to help

          • 2. Re: BindTriggerAction To A Symbol Instance?
            FlexAce Level 1

            The digit is a symbol

             

            But I have multiple instances of that on my stage

            And I want to be able to add & remove a stop dynamically to only one instance

             

            project here

             

            http://awesomedigital.com/Numbers.zip

             

             

            Background-----------------------

             

            All of the digits make number that will change several times from an external call

            I want each of the digits to individually scroll to the new number on each change

             

            Ideally if there were a playToAndStop command I would love that

             

            But since there is not, my hack idea #422 is to

                

                      Stick a stop on the digit timeline (instance) and the play or play in reverse

                      Then remove the stop since it will be a differnt number to stop at next time