var words_pos = [w0, w1, w2, w3, w4]; var words_ausgangspos = []; // // // // for (var i in words_pos) { words_ausgangspos[i] = words_pos[i]=[this["w"+i], this["w"+i]._x, this["w"+i]._y]; // this["w"+i].ID = i; // // this["w"+i].onPress = function() { startDrag(this); }; // // this["w"+i].onRelease = this["w"+i].onReleaseOutside=function () { this.stopDrag(); if (this.hitTest(bg)) { words_pos[this.ID] = [this, this._x, this._y]; trace(words_pos); trace(words_ausgangspos); } else { this._x = words_ausgangspos[this.ID][1]; this._y = words_ausgangspos[this.ID][2]; } }; } // // trace("aktuelle Positionen: "+words_pos); trace("Ausgangspositionen : "+words_ausgangspos); // senden.onPress = function() { // lvOut = new LoadVars(); // trace("##############"); trace("### SENDEN ###"); trace("##############"); for (var i in words_pos) { if (words_pos[i][1] != 440) { trace(words_pos[i][0]+" _x:"+words_pos[i][1]+" _y:"+words_pos[i][2]); lvOut["name_word"+i] = words_pos[i][0]; lvOut["x_word"+i] = words_pos[i][1]; lvOut["y_word"+i] = words_pos[i][2]; } } trace(lvOut); //lvOut.send("deine.php", "_blank"); };