2 Replies Latest reply on Dec 6, 2007 3:30 AM by Newsgroup_User

    Calculating perimeter - bounds

    Level 7
      Hi,

      Here is the task simplified:

      You have a grid on which you place boxes that snap together,
      all boxes have to touch each other, once you finish you click
      i finished and it ouputs the bound measures.

      How would one get those measures?

      Thank you!
      tamagorci
        • 1. Re: Calculating perimeter - bounds
          Greg Dove Level 4
          If you have your boxes inside a container movie clip you could use the getBounds method on the container clip I would imagine. I've used it before but not for some time. I think its part of the answer to what you want to do.
          • 2. Re: Calculating perimeter - bounds
            Level 7
            Hi.

            Thank you for your answer GWD!

            I've tried looking into the getBounds
            method but it seems to return only rectangular
            bounds.

            I'd like to get bounds also for non rectangular
            shapes; like an L shape made out of boxes for example

            Thanks,
            tamagorci

            GWD wrote:
            > If you have your boxes inside a container movie clip you could use the
            > getBounds method on the container clip I would imagine. I've used it before but
            > not for some time. I think its part of the answer to what you want to do.
            >
            >