rendered paste bodyvar words_ausgangspos = [];
//
//
//
//
for (var i in words_pos) {
words_ausgangspos[i] = words_pos[i]=[this["w"+i]._name, 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._name, 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() {
if (email_txt.text.isEmail() == true) {
//
lvOut = new LoadVars();
myDate = new Date();
var ranNum = Math.round(Math.random()*1000000);
var ranChar = chr(Math.round(Math.random()*24)+97);
var session = (myDate.getMonth()+""+myDate.getDate()+""+myDate.getFullYear()+""+ranNum+ranChar);
//
trace("\n### SENDEN ###");
var layoutstring = "&layoutstring=";
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"+i] = words_pos[i][0];
//lvOut["x_word"+i] = words_pos[i][1].toString();
//lvOut["y_word"+i] = words_pos[i][2];
temp = words_pos[i][0]+","+words_pos[i][1]+","+words_pos[i][2]+"|";
layoutstring += temp;
}
}
layoutstring = layoutstring.substr(0, layoutstring.length-1);
layoutstring += "&";