Please check script

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)

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

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 :frowning: here is the script I used

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

**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)