0 Replies Latest reply on May 26, 2006 10:32 PM by karthickp

    problem with Textsnapshot-- setSelectColor() method

    karthickp
      problem with Textsnapshot-- setSelectColor() method



      ObjText = _root.my_mc.pages.p1.page.pf.ph.pic.p1.getTextSnapshot();
      Totalchar = ObjText.getCount();
      trace(Totalchar); // this is returning the number of character in movieclip p1

      ObjText.setSelected(100, 300, true);
      ObjText.setSelectColor(0xFA0000);------not working

      The problem is the setSelectColor(0xFA0000); is not marking the color in the charcter from 100

      to 300.


      but the below code works fine. the only difference is that path ofthe movieclips
      _root.my_mc
      _root.my_mc.pages.p1.page.pf.ph.pic.p1


      var ObjText = _root.my_mc.getTextSnapshot();
      Totalchar = ObjText.getCount();
      trace(Totalchar); // this returns the number of character in movieclip my_mc

      ObjText.setSelected(100, 300, true);
      ObjText.setSelectColor(0xFA0000); // this works fine


      the main thing is in both the code --trace(Totalchar);--
      is giving the correct output.


      can u plz helps me to solve this problem.