I'm using Flash MX and working on a drag and drop problem. This is a geography problem to correctly identify the countries of the world and I want the users to drag a text movie clip (the name of the country) and drop it over the correct location on an outline map of the continent. It's not working well and I have used the trace function to try to figure it out:
on(press){
startDrag(this,true);
}
on(release, releaseOutside){
stopDrag();
trace("Drag Stopped");
trace("Dropped. droptarget =" +this._droptarget);
}
The image has each country in its own movie clip with a static text superimposed. So, whenever I drop over the country, the trace comes up empty. However, when I drop over the text box, I get the appropriate "droptarget = /instance46" or whatever the system has labeled the particular text box. Each country movie clip is in its own timeline. The movie clip contains a graphic of the shape of that country.
How come the text boxes are correctly identified and the movie clips containing the shapes of the countries are ignored? Any suggestions?
Roy
on(press){
startDrag(this,true);
}
on(release, releaseOutside){
stopDrag();
trace("Drag Stopped");
trace("Dropped. droptarget =" +this._droptarget);
}
The image has each country in its own movie clip with a static text superimposed. So, whenever I drop over the country, the trace comes up empty. However, when I drop over the text box, I get the appropriate "droptarget = /instance46" or whatever the system has labeled the particular text box. Each country movie clip is in its own timeline. The movie clip contains a graphic of the shape of that country.
How come the text boxes are correctly identified and the movie clips containing the shapes of the countries are ignored? Any suggestions?
Roy