ianhull
07-20-2005, 09:51 AM
Hi Guys,
a little flash problem here if any of you would be kind enough to help.
I am using drag and drop with targets in Flash but if the drag object is not dropped onto the corect target I would like it to return to the start position on the bottom of the movie so the user can try again.
here is what I have upto now which works fine.
//
on (press)
{
startDrag(this, false);
_root.answer1 = "";
}
on (release)
{
stopDrag();
if (this._droptarget != "/a2")
{
_root.answer1 = "wrong"; // Instead of this I would like the movie clip t1 to return to the start position.
}
else
{
_root.answer1 = "Correct";
} // end if
}
Any help will be greatly apprecited.
Thanks in advance.
a little flash problem here if any of you would be kind enough to help.
I am using drag and drop with targets in Flash but if the drag object is not dropped onto the corect target I would like it to return to the start position on the bottom of the movie so the user can try again.
here is what I have upto now which works fine.
//
on (press)
{
startDrag(this, false);
_root.answer1 = "";
}
on (release)
{
stopDrag();
if (this._droptarget != "/a2")
{
_root.answer1 = "wrong"; // Instead of this I would like the movie clip t1 to return to the start position.
}
else
{
_root.answer1 = "Correct";
} // end if
}
Any help will be greatly apprecited.
Thanks in advance.