What is wrong with the code?

wrong forum… moved to AS3