codice:// se voi che una clip si possa attaccare anche su diversi clip // tutti clip devono essere allineate al centro var clipArray = new Array(zona_01, zona_02, zona_03); // dragClip_mc il clip che devi draggare dragClip_mc.onPress = startDrag dragClip_mc.onRelease = function() { for (var u in clipArray) { if (this.hitTest(clipArray[u])) { this.stopDrag(); this._x = clipArray[u]._x; this._y = clipArray[u]._y; } } }; // se voi che una clip si possa attaccare su un clip dragClip_mc.clip = zona_01; dragClip_mc.onPress = startDrag; dragClip_mc.onRelease = function() { if (this.hitTest(this.clip)) { this.stopDrag(); this._x = this.clip._x; this._y = this.clip._y; } };

Rispondi quotando