0 Replies Latest reply on Jan 1, 2016 7:31 AM by RedLight

    Color in symbols

    RedLight

      Hello

          I'm trying to develop an application for soccer uniform coloring, and could color the svg. Only that will put many uniforms, then turned into symbol to put them in there. The button Next can navigate between models and coloring them, but when I click back models appear but unable to colored them or select them. I will put the code below to see if you can help me:

       

       

       

      BUTTON BACK:

      sym.getSymbol ("shirts") playReverse (.);

       

       

       

      CODE SELECTING THE PARTIES:

      EC.SVG.accessSVG (sym.getSymbol ('shirts'). $ ('C03')). Done (

      function (svgDocument) {

       

       

      // Add event listener

      svgDocument.addEventListener ("select" function (event) {

       

       

      // Remember selected part

      sym.setVariable ("selectedPart" event.target);

       

       

      // Show the id of the selected part in the textfield

      sym $ ("selectedPartTxt") html (event.target.id)..;

       

       

      });

      });