I have a few objects -which I want the user to drag, drop on the grid and also have the ability to delete it-if they click on the delete key-but because I have a few objects (circles) how can they choose which one to delete (the onclick action I used for the dragging) also-how can I show if a circle is selected?
here's the code for on circle:
onClipEvent (load) {
_root.circle2.onPress = function() {
_root.circle2.startDrag();
};
_root.circle2.onRelease = function() {
_root.circle2.stopDrag();
};
_root.circle2.onEnterFrame = function() {
if (Key.isDown(Key.DELETEKEY)) {
_root.circle2.unloadMovie();
}
}
}
thank you
here's the code for on circle:
onClipEvent (load) {
_root.circle2.onPress = function() {
_root.circle2.startDrag();
};
_root.circle2.onRelease = function() {
_root.circle2.stopDrag();
};
_root.circle2.onEnterFrame = function() {
if (Key.isDown(Key.DELETEKEY)) {
_root.circle2.unloadMovie();
}
}
}
thank you