Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:44:14+00:00 2026-06-10T14:44:14+00:00

I am writing a flash app for an LED floor using a Kinect to

  • 0

I am writing a flash app for an LED floor using a Kinect to track tuio points. The interactive is split into three zones. When a particular zone has more tuio points than any other zone, it will send a message to another application which triggers a photostream (not important right now)…

I am wondering what the best way to count these points would be. Would three different containers do it? If so, how is it that each container could effectively “contain” the points. I was thinking of drawing three different Rectangles and creating some kind of function that counts the points within the coords of each rect. I just can’t really wrap my head around how to keep certain points married to a specific region or DisplayObject.

Any thoughts? Thank you…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:44:16+00:00Added an answer on June 10, 2026 at 2:44 pm

    Placing points inside another container is like putting marbles inside balloon; the points will move, but the boundaries of the balloon will stretch to accomodate the marbles. Unless this is the behavoir you’re looking for, don’t parent the points to your rectangles.

    Assuming a specific layout of rectangles, your goal is to count the number of points overlapping each rectangle. While you could certainly go the route of Geometry/Trigonometry calculations to ascertain an overlap (if your geometry were more complex, such as triangles, or n-sided objects), you could probably just get away with a framestack using getObjectsUnderPoint() & Point object..

    var point:Point = new Point(tuioX, tuioY);
    var stack:Array = getObjectsUnderPoint(point);
    

    Check the array for each of the 3 regions, and you’ll have your answer. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an app for the Blackberry Playbook using Flash Builder 4.6 and
I'm writing my first interactive animation in Flash CS3 and I'm having trouble locating
I'm writing some automated acceptance tests for a flash movie (driving the movie using
I am writing a CakePHP app but it doesn't seem to be showing flash()
i am writing a flash app that receives its data over a XMLSocket. On
I'm writing a Pure AS3 app, embedding a font using the Embed metatag like
I am writing Flash app (Flash Player 10, AS 3.0) that is full screen
I'm writing a web-app using flask, python and HTML. My issue is that the
I'm writing a very simple flash app (AS 2) to sign users up to
I'm writing application in Adobe Flash Builder 4.5 using AIR 3 SDK. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.