try using some tracing, ex

code:

hello = "0." + substring(this._droptarget, 4,1);
trace(hello);
// where this.droptarget is the instance a07
if (hello == display) {
trace("yes it equals display");
_root.green_box.gotoAndStop(2); //Let's say it do stuff A
} else {
_root.green_box.gotoAndStop(3); //Let's sat it do stuff B
_root.a07.gotoAndStop(3);
trace("oh no, it doesnt equal display");
}



see if it's actually running that or if theres some problem
oh, and use the [/as] [as] tags for code (i put them in wrong order so they dont work