主题:  各位大侠急救

rabbitnn

职务:普通成员
等级:1
金币:0.0
发贴:9
#12002/5/13 8:08:36
我想根据数据库中的数据实时变化来实现动态波形图与柱形图



肖和

职务:普通成员
等级:1
金币:10.0
发贴:266
#22002/5/13 11:19:33

_x
_y 坐标变化,

 变量间的传递



阿福呆呆afool

职务:普通成员
等级:7
金币:9.7
发贴:7465
#32002/5/15 18:45:51
控制波幅
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);
}

对象可以自己定