Wednesday, April 20, 2011

Flash Stage Setting

Now I need to adjust the stage size and remove unnecessary items for my installation. As can see from previous post the output was divided into two part, webcam images and tracking image. Now I need to remove both output so that the effects project on body will be nice. Here are some codes that I've make them into comment that will skip these code from processing throughout the codes:


/*addChild(_blurSlider);
addChild(_blurLabel);

addChild(_brightnessSlider);
addChild(_brightnessLabel);

addChild(_contrastSlider);
addChild(_contrastLabel);

addChild(_minAreaSlider);
addChild(_minAreaLabel);*/

// Show the image the MotionTracker is processing and using to track
_output = new Bitmap(_motionTracker.trackingImage);
_output.x = camW + 20;
_output.y = 10;
//addChild(_output);

// Configure the UI
//_blurSlider.addEventListener(Event.CHANGE, onComponentChanged);
//_brightnessSlider.addEventListener(Event.CHANGE, onComponentChanged);
//_contrastSlider.addEventListener(Event.CHANGE, onComponentChanged);
//_minAreaSlider.addEventListener(Event.CHANGE, onComponentChanged);

/*private function applyFilters() : void
{
_blurLabel.text = "Blur: " + Math.round(_blurSlider.value);
_brightnessLabel.text = "Brightness: " + Math.round(_brightnessSlider.value);
_contrastLabel.text = "Contrast: " + Math.round(_contrastSlider.value);
_minAreaLabel.text = "Min Area: " + Math.round(_minAreaSlider.value);

_matrix.reset();
_matrix.adjustContrast(_contrastSlider.value);
_matrix.adjustBrightness(_brightnessSlider.value);
_source.filters = [new ColorMatrixFilter(_matrix)];
}*/


This is how it looks like after the modify:

No comments:

Post a Comment