# Strange actionscript problem: BUG?

**URL:** https://forum.kirupa.com/t/strange-actionscript-problem-bug/152179
**Category:** Uncategorized
**Created:** [June 21, 2005, 10:39pm UTC](https://forum.kirupa.com/t/strange-actionscript-problem-bug/152179 "2005-06-21T22:39:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Idunno](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@Idunno](https://forum.kirupa.com/u/Idunno)
#### Post date: [June 21, 2005, 10:39pm UTC](https://forum.kirupa.com/t/strange-actionscript-problem-bug/152179/1 "2005-06-21T22:39:07Z")

</div>

I have a very strange “thing”, bug, problem - whatever.  
I think my script is okay but flash doesn’t like it:

```php
if (((Math.abs(this.eFX-this.eTX) + Math.abs(this.eFY-this.eTY)) <= 1) {
        this._x = this.eTX;
	this._y = this.eTY;
	delete this.onEnterFrame;
}

```

Flash gave me this error-message:

```php
**Error** Symbol=Gallery, layer=Actions, frame=1:Line 190: ')' expected
     				if (((Math.abs(this.eFX-this.eTX) + Math.abs(this.eFY-this.eTY)) <= 1) {

Total ActionScript Errors: 1 Reported Errors: 1

```

What’s the problem with my script?
