Frame 1
function dragSetup(clip, targ) {
clip.onPress = function () {
startDrag (this);
this.beingDragged = true;
};
clip.onRelease = (clip.onReleaseOutside = function () {
stopDrag();
this.beingDragged = false;
if (eval (this._droptarget) == targ) {
this.onTarget = true;
} else {
this.onTarget = false;
}
if (eval (this._droptarget) == recycler) {
this.deleted = true;
}
});
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
clip.myFinalX = _level0.Tan._x;
clip.myFinalY = _level0.Tan._y;
clip.onEnterFrame = function () {
if ((!this.beingDragged) && (this.onTarget)) {
this._x = this._x - ((this._x - this.myFinalX) / 5);
this._y = this._y - ((this._y - this.myFinalY) / 5);
feedback.text = "Well done!: " + eval (clip._depth);
} else if ((!this.beingDragged) && (this.deleted)) {
unloadMovie (this);
}
};
}
Symbol 8 MovieClip [Wear_Upper_Maid] Frame 1
Symbol 16 Button
on (release) {
trace("t = " + t);
if (t == eval (undefined)) {
_root.t = 0;
} else {
_root.t = _root.t + 1;
}
_level0.attachMovie("Wear_Upper_Maid", "item" + _root.t, _root.t + 20, {_x:600, _y:500});
trace("Depth " + eval (_root.t + 20));
new_item = "item" + _root.t;
dragSetup(eval (new_item), Attach_Body);
trace(new_item);
}
Symbol 17 Button
on (release) {
trace("t = " + t);
if (t == eval (undefined)) {
_root.t = 0;
} else {
_root.t = _root.t + 1;
}
_level0.attachMovie("Wear_Boots_Maid", "item" + _root.t, _root.t + 20, {_x:600, _y:500});
trace("Depth " + eval (_root.t + 20));
new_item = "item" + _root.t;
dragSetup(eval (new_item), Attach_Body);
trace(new_item);
}