0 Replies Latest reply on Mar 12, 2011 5:32 AM by smokin12792008

    JSFL - adding stroke

    smokin12792008

      hi all,

       

      I need to add stroke to a selection

       

       

      My over all objective is:

      to go into a movie clip,

      copy the vector drawing there

      create new layer

      paste the there

       

      now

       

      i need to add stroke to the vector i the borrom layer to size 10

       


      
      if (fl.getDocumentDOM().selection.length == 0) 
      { 
           fl.trace("Error: Nothing selected.");
      } else 
      {
      
           fl.getDocumentDOM().library.getSelectedItems()[0].timeline.copyFrames(0);
           fl.getDocumentDOM().selectAll();
                
           var myStroke = fl.getDocumentDOM().getCustomStroke("selection");
           myStroke.color = "#FFCC00";
              myStroke.thickness=12;
           fl.getDocumentDOM().setCustomStroke(myStroke);
           fl.getDocumentDOM().library.getSelectedItems()[0].timeline.addNewLayer();
           fl.getDocumentDOM().library.getSelectedItems()[0].timeline.pasteFrames(0);
      
           var myStroke = fl.getDocumentDOM().getCustomStroke("toolbar");
           myStroke.color = "#FFCC00";
      
           
      }
      
      

       

      i am able to do all the above except adding stroke .... stroke is not getting added ....

       

      Please help