Embede Drag and Drops

Jun 23, 2011

I have a drag and drop activity in flash that works fine. Once I import it into articulate it does nto function anymore.

My code is below. I dont make reference to root or level0. What is the issue here?

on (rollOver) {
 this.gotoAndStop(2);
}
on (rollOut) {
 this.gotoAndStop(1);
}
on (press) {
 startDrag(this);
 dx = this._x;
 dy = this._y;
 this._parent.feedback = "";
}
on (release, releaseOutside) {
 stopDrag();
 if ((getProperty(this, _droptarget)) eq ("/dna")) {
  setProperty(this, _x, dx);
  setProperty(this, _y, dy);
  this.enabled = false
  this.gotoAndStop(3);
  trace(_droptarget);
  this._parent.feedback = "Correct";
  
  
 } else {
  setProperty(this, _x, dx);
  setProperty(this, _y, dy);
  this.gotoandplay(1);
  //_root.feedback = "Wrong answer.";
  //this._parent.myColor.setRGB(0xFF0000);
 }
}

6 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.