PRODUCTS
 
 
 
 
 

OVERVIEW
PRODUCTS
DOWNLOADS
DOCUMENTATION
DATASHEETS
FAQ
 
FLASH CLASS LIBRARY

Sample Application: Video Pointer

Video Pointer Movie Clip

 



Click the image to see a larger version
Click here to download Video Pointer

The Video Pointer applet illustrates a bit more of an involved Teleo Flash application. In this application, the blue arrow tracks the position of the tip of your finger as you hold your arm over a video camera pointed towards the ceiling.

To set up this application with Teleo hardware, you'll need a Teleo Video Module networked to an Intro Module with a network cable, and a video camera. Attach the Intro Module to your computer via USB and plug your video camera into the Video Module, pointing it towards the ceiling.

Please note that this is one of many potential applications of the Video Module. The Teleo Flash Class Reference includes information about other possibilities.

In the first frame of the actions layer in the main timeline, the following code deals with the actual tracking:

import com.makingthings.*;

...

var video = new TVideoMove( 0, "0" );

...

video.onMovementRow = function( row, value )
{
    var p:Point = this.getCenterOfMass();
    var y:Number = this.getBoundingTop();

    if ( p.x == -1 && p.y == -1 )
        tPiece._visible = false;
   else
   {
       tPiece._visible = true;
       tPiece._x = 395 - ( p.x * 16 );
       tPiece._y = 125 + ( y * 16 );
   }
}
   

For more in-depth information about the classes and their use, please see the Teleo Flash Class Reference.

 
 

copyright © 2002-2004 MakingThings LLC

   
..
.