0 Replies Latest reply on Feb 9, 2013 10:53 PM by j45685403

    How to target dynamic symbols

    j45685403 Level 1


      I watched this video:

      http://tv.adobe.com/watch/create-like-crazy-with-adobe-edge/episode-4-create-dynamic-reusa ble-components-with-edge-animate/

      almost everything is ok except one thing. I can't target dynamically created symbol (called button). I was trying to write something like this


      to Symbol.bindElementAction but nothing works.


      My code is now:

      var slides = sym.$('.slide');
      $.each( slides, function( index, item ) {
          var button = sym.createChildSymbol( 'button', 'dotContainer' );
          button.setVariable( "index", index );
      Symbol.bindElementAction(compId, "button", "bg", "click", function(sym, e) {
          var index = sym.getVariable("index");
          var stage = sym.getComposition().getStage();


      Thanks for hints..