0 Replies Latest reply on Dec 28, 2006 6:06 AM by buabco

    HOW TO CORRECTLY MEASURE A MOVIECLIP

    buabco Level 1
      HI!

      I've been playing with getBounds in order to correctly get the size and position of an MC so I can perform certain calculations accordingly. Basically I'm using a code like this:

      var mcSize:Rectangle = targetmc.getBounds(targetmc.parent);

      Which works most of the time and my calculations happen to be correct. But I've added some "difficulty" to this, by including a mask into the mc, that is the "targetmc" has two elements in it, a mask, and a masked element. I was expecting that the "BOUNDS" of this mc will be according to whatever is visible on the mc. But to my disappointment, the BOUNDS are returned as if there is no mask.

      So how do I get the right measures of this movie clip? (that is the measures of the visible part of it?).


      Buabco