#72002/5/16 13:56:37
以下程序可以直接在FLASH里输进数据 不过参数位置可能没有你想象的那么标准
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse)) {
startDrag ("", false, 300, this._y, 400, this._y);
}
}
onClipEvent (mouseUp) {
stopDrag ();
}
onClipEvent (enterFrame) {
this.TXT1 = -300+this._x;
setProperty (_root.wave, _yscale, -450+this._x*1.5);
}
控制波形
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse)) {
startDrag ("", true, 365, this._y, 416, this._y);
}
}
onClipEvent (mouseUp) {
stopDrag ();
}
onClipEvent (enterFrame) {
if (this._x > 410) {
this._x = 416;
this.TXT3 = "SQR";
tellTarget (_root.wave.form) {
gotoAndStop (3);
}
} else if (this._x < 372) {
this._x = 365;
this.TXT3 = "SINE";
tellTarget (_root.wave.form) {
gotoAndStop (1);
}
} else {
this._x = 390;
this.TXT3 = "TRI";
tellTarget (_root.wave.form) {
gotoAndStop (2);
}
}
}
控制震幅
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse)) {
startDrag ("", false, 300, this._y, 400, this._y);
}
}
onClipEvent (mouseUp) {
stopDrag ();
}
onClipEvent (enterFrame) {
this.TXT2 = -300+this._x;
setProperty (_root.wave, _xscale, 8+-2400.5+this._x*8);
}