Translation from AS1 to AS2 (Slider Script)

Hello all,
EDIT: I realize that the script I posted was incorrect… but I’m still wondering if an AS1 script needs to be translated into AS2 in order to work in an AS2 document. That would be really nice if they were interchangeable.
Thanks!