# Please check script

**URL:** <https://forum.kirupa.com/t/please-check-script/75321>\
**Category:** Uncategorized\
**Created:** [January 7, 2005, 6:05pm UTC](https://forum.kirupa.com/t/please-check-script/75321 "2005-01-07T18:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tracy981](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@Tracy981](https://forum.kirupa.com/u/Tracy981)\
**Post date:** [January 7, 2005, 6:05pm UTC](https://forum.kirupa.com/t/please-check-script/75321/1 "2005-01-07T18:05:16Z")

</div>

hi, im working with an FLA i downloaded (lets call its Mask) (cant remember where, awhile back) and its in MX format. I opened it up in MX2004 to apply it to my FLA but since its AS 1 and im using AS2 the coding is wrong. in the Mask FLA this is wut it said in the output window)

```auto
Automatic conversion performed to update your ActionScript to Flash MX 2004:
* Functions were converted to the new recommended case (e.g. GetProperty-->getProperty)

Automatic conversion performed to update your ActionScript to Flash MX 2004:
* x op y was converted to Number(x) op Number(y) for operators +, <, >, <=, >=, =, and <>

Automatic conversion performed to update your ActionScript to Flash MX 2004:
* The old equality operator '=' was converted to '=='

```

original code

```auto
py = getProperty("", _y);
if (Number(/:b)>Number(/:m)) {
	setProperty("", _y, Number(py)+Number(((/:b-2)*244-py)*fs));
} else if (Number(/:b)<Number(/:m)) {
	setProperty("", _y, py-(Number((2-/:b)*244)+Number(py))/bs);
}

```

and in my FLA i applied the same script and changed the wut I could understand but im having alot of trouble with it, if someone could give me hand b/c I dont understand operands to good ☹ here is the script I used

```auto
py == getProperty("", _y); {
if (Number(/:b)>Number(/:m)) {
	getProperty("", _y, Number(y)+Number(((/:b-2)*331-y)*fs));
}else if (Number(/:b)<Number(/:m)) {
	getProperty("", _y, y-(Number((2-/:b)*331)+Number(y))/bs);
}
}
}

```

error message i get

```auto
**Error** Symbol=mc_pics, layer=action, frame=2:Line 2: Unexpected '/' encountered
     if (Number(/:b)>Number(/:m)) {

**Error** Symbol=mc_pics, layer=action, frame=2:Line 3: ')' expected
     	getProperty("", _y, Number(y)+Number(((/:b-2)*331-y)*fs));

**Error** Symbol=mc_pics, layer=action, frame=2:Line 4: 'else' encountered without matching 'if'
     }else if (Number(/:b)<Number(/:m)) {

**Error** Symbol=mc_pics, layer=action, frame=2:Line 5: ')' expected
     	getProperty("", _y, y-(Number((2-/:b)*331)+Number(y))/bs);

**Error** Symbol=mc_pics, layer=action, frame=2:Line 6: Unexpected '}' encountered
     }

Total ActionScript Errors: 5 Reported Errors: 5

```

thanks  
Tracy (sorry so long)
