# Eval question

**URL:** <https://forum.kirupa.com/t/eval-question/187460>\
**Category:** Uncategorized\
**Created:** [April 29, 2006, 8:59am UTC](https://forum.kirupa.com/t/eval-question/187460 "2006-04-29T08:59:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim1](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jim1](https://forum.kirupa.com/u/jim1)\
**Post date:** [April 29, 2006, 8:59am UTC](https://forum.kirupa.com/t/eval-question/187460/1 "2006-04-29T08:59:27Z")

</div>

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 🙂

```php
 
// 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
