i am trying to get some idea about AS
i read some pages from the help
i have some questions in this code, questions in the comments
// Drag garbage_mc is false. i changed the flase to true, but nothing changed, why they put flase?
garbage_mc.onPress = function() {
this.startDrag(false);
};
// When the garbage is dragged over the trashcan, make it invisible.
garbage_mc.onRelease = function() {
this.stopDrag();
// what is the main job of eval here? i tried to read about it in the help, but i did not understand it?
if (eval(this._droptarget) == trashcan_mc) {
garbage_mc._visible = false;
}
};
thanks for your help