0 Replies Latest reply on Jan 11, 2007 4:03 PM by abeall

    determining original size after scrollRect

    abeall Level 3
      I'm trying to determine the size of a MovieClip which has a scrollRect. As expected, the _width/_height reflects the size after scrollRect applied, not the original clip. The problem is, that in my testing it appears that scrollRect does not take affect until after the code(frame?) is executed. Example:
      import flash.geom.Rectangle;
      mc.scrollRect = new Rectangle(0,0,55,55);
      trace(mc._width); // 200, or whatever original size is
      function onEnterFrame(){
      trace(mc._width); // 55

      The makes it impossible to set the scrollRect to null, measure, then re-apply a clone of the original scrollRect. Am I stuck? Is there any way to determine the original size?