2 Replies Latest reply on Jun 18, 2014 10:04 PM by EdLDickey

    Code question:

    EdLDickey

      I have a project that has 4 index tabs, with a corresponding text box for each that should display when the tab is clicked.. All the elements are in place on the timeline, and everything runs correctly when played through. There are click events associated with each header that play from a specific point, then stop at a later time. (text scrolls up from bottom)The animation works properly, but the code driving the click events is dead. no response at all. Everything appears to be correct. Any thoughts? (screen cap below)

      screen cap.png

        • 1. Re: Code question:
          Sudeshnasarkar27 Adobe Employee

          Hi ,

           

          Can you share the code on the click events?

           

          Thanks and Regards,

          Sudeshna Sarkar

          • 2. Re: Code question:
            EdLDickey Level 1

            Sudeshna,

             

            Thanks for the help. Here is the code that should be driving th "About" tab.

             

            (function($, Edge, compId){

            var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes

             

             

               //Edge symbol: 'stage'

               (function(symbolName) {

                 

                 

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

                     sym.stop(0001);

                    

                    

             

             

                  });

                  //Edge binding end

             

             

                 

             

             

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

                     // Play the timeline at a label or specific time. For example:

                     // sym.play(500); or sym.play("myLabel");

                     sym.play(0000);

                     // insert code for mouse click here

                     // Stop the timeline at a label or specific time. For example:

                     // sym.stop(500); or sym.stop("myLabel");

                     sym.stop(500);

             

             

                  });

                  //Edge binding end

             

             

               })("stage");

               //Edge symbol end:'stage'

             

             

               //=========================================================

              

               //Edge symbol: 'sym_About'

               (function(symbolName) {  

              

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

                     // insert code for mouse click here

                     // Play the timeline at a label or specific time. For example:

                     // sym.play(500); or sym.play("myLabel");

                     sym.play(000);

                     // Stop the timeline at a label or specific time. For example:

                     // sym.stop(500); or sym.stop("myLabel");

                     sym.stop500);

             

             

                  });

                  //Edge binding end

             

             

               })("sym_About");

               //Edge symbol end:'sym_About'

             

             

            })(jQuery, AdobeEdge, "EDGE-398948468");