Substring help

whats the deal with AS 2.0 and substrings? i keep getting an error saying “there is no method with the name substring…”

works fine with AS 1 though…