b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 712031 (Thread)

# heers how its done...
_root.createEmptyMovieClip('micAudio', 2);
_root.createEmptyMovieClip('chart', 1);
_root.micAudio.attachAudio(Microphone.get());
myMic = Microphone.get();
myMic.setGain(20);
name = myMic.name;
var chartMakerX = _root.chartMaker._x;
var chartMakerY = _root.chartMaker._y;
with (_root.chart) {
moveTo(chartMakerX, chartMakerY);
}
_root.onEnterFrame = function () {
activityLevel = myMic.activityLevel;
chartMaker._y = 140 - activityLevel;
chartMakerX = _root.chartMaker._x;
chartMakerY = _root.chartMaker._y;
with (_root.chart) {
lineStyle(1, 0, 100);
lineTo(_root.chartMakerX, _root.chartMakerY);
moveTo(_root.chartMakerX, _root.chartMakerY);
}
};

(, Thu 23 Jan 2003, 17:44, archived)