主题:  编程出现的问题

1399866

职务:普通成员
等级:2
金币:1.0
发贴:263
注册:2002/8/21 22:27:46
#12002/9/16 8:52:54
源程序如下:
on(press){
    this.startdrag(true);
}
on(release){
    this.stopdrag();
}



出错:
Symbol=Symbol 1, Layer=Layer 3, Frame=1: Line 1: Mouse events are permitted only for button instances
on(press){

Symbol=Symbol 1, Layer=Layer 3, Frame=1: Line 4: Mouse events are permitted only for button instances
on(release){



IT编辑

职务:普通成员
等级:6
金币:10.0
发贴:7769
注册:2002/4/1 10:30:23
#22002/9/16 9:54:30
出错信息是说:鼠标时间只能作用与按钮实例上。
如果把这段代码添加在按钮上就可以了。另外注意大小写:startDrag。