Monday, 22 February 2010

drag and drop learning interactions in flash

 on(press) {
startDrag(this);
_root.answer1="";
}

on(release) {
stopDrag();
if (this._droptarget == "hello") {
_root.answer1="Correct";
}
else{
_root.answer1 = "wrong";
}
}

//here we have a simple interaction where the user selects an answer from a list, and then drags
// the resault over the one he/she thinks matchs. if correct resault matchs then it will = "hello" if not
//it will = "wrong"

No comments: