Criei um retangulo h:121 W:90
Transformei em movie clip e lhe dei o nome de instância dragger.
Nele coloquei a action:
onClipEvent (enterFrame) {
this._x += (loc-this._x)/4;
}
Depois criei um outro retangulo h:500 w:90 e lhe dei o nome de área.
Nele coloquei a action:
onClipEvent (load){
mpoint = new object();
}
onClipEvent (mouseMove){
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
mpoint.x = this._xmouse;
mpoint.y = this._ymouse;
localToGlobal(mpoint);
_parent.dragger.loc=mpoint.x;
}else{
}
}
O flash reporta este erro:
**Warning** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: The identifier 'object' will not resolve to built-in object 'Object' at runtime.
mpoint = new object();
Total ActionScript Errors: 1 Reported Errors: 1
Alguém pode me ajudar como resolvo esse problema com
o 'object'?